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: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3882%2Fhead;p=thirdparty%2Fpdns.git allow overriding python binary in tests --- diff --git a/regression-tests.api/runtests b/regression-tests.api/runtests index 02c6c14608..beee380d31 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 4c35c1102d..12951e26df 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 d1d941a039..1e8833b095 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