From: Peter van Dijk Date: Fri, 20 May 2016 13:54:21 +0000 (+0200) Subject: allow overriding python binary in tests X-Git-Tag: auth-4.0.0-beta1~11^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef5a5c886506233729607a5d75217dacff8544bc;p=pdns allow overriding python binary in tests --- diff --git a/regression-tests.api/runtests b/regression-tests.api/runtests index 02c6c1460..beee380d3 100755 --- a/regression-tests.api/runtests +++ b/regression-tests.api/runtests @@ -1,7 +1,9 @@ #!/usr/bin/env bash +PYTHON=${PYTHON:-python2} + if [ ! -d .venv ]; then - virtualenv -p python2 .venv + virtualenv -p ${PYTHON} .venv fi . .venv/bin/activate python -V diff --git a/regression-tests.dnsdist/runtests b/regression-tests.dnsdist/runtests index 4c35c1102..12951e26d 100755 --- a/regression-tests.dnsdist/runtests +++ b/regression-tests.dnsdist/runtests @@ -1,7 +1,10 @@ #!/usr/bin/env bash +set -e + +PYTHON=${PYTHON:-python2} if [ ! -d .venv ]; then - virtualenv -p python2 .venv + virtualenv -p ${PYTHON} .venv fi . .venv/bin/activate python -V diff --git a/regression-tests.recursor-dnssec/runtests b/regression-tests.recursor-dnssec/runtests index d1d941a03..1e8833b09 100755 --- a/regression-tests.recursor-dnssec/runtests +++ b/regression-tests.recursor-dnssec/runtests @@ -1,7 +1,9 @@ #!/bin/sh +PYTHON=${PYTHON:-python2} + if [ ! -d .venv ]; then - virtualenv -p python2 .venv + virtualenv -p ${PYTHON} .venv fi . .venv/bin/activate python -V