From ef5a5c886506233729607a5d75217dacff8544bc Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Fri, 20 May 2016 15:54:21 +0200 Subject: [PATCH] allow overriding python binary in tests --- regression-tests.api/runtests | 4 +++- regression-tests.dnsdist/runtests | 5 ++++- regression-tests.recursor-dnssec/runtests | 4 +++- 3 files changed, 10 insertions(+), 3 deletions(-) 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 -- 2.47.2