diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-11-11 12:03:46 +0100 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-11-11 12:11:13 +0100 |
commit | c3dc900373daa90464d3f16598f941c5a564c3b5 (patch) | |
tree | fba3ef4db7a4d9fdd2c2a418742941545d1912d9 /t/python-too-old.sh | |
parent | 2ccd405661bf7f49d14c5be54d4adacb046d521c (diff) | |
download | automake-c3dc900373daa90464d3f16598f941c5a564c3b5.tar.gz |
tests: honour $PYTHON override
* t/ax/am-test-lib.sh (require_tool): Here.
* t/python-too-old.sh: And here.
* t/python-vars.sh: And here.
* t/python-virtualenv.sh: And here. Also add some sanity
checks while at it.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/python-too-old.sh')
-rwxr-xr-x | t/python-too-old.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/python-too-old.sh b/t/python-too-old.sh index e4185fcd2..b479c9e79 100755 --- a/t/python-too-old.sh +++ b/t/python-too-old.sh @@ -34,6 +34,7 @@ py_too_old () grep '[Pp]ython interpreter is too old' stderr } +saved_PYTHON=$PYTHON; export saved_PYTHON PYTHON=; unset PYTHON cat > configure.ac <<END @@ -50,7 +51,7 @@ py_too_old python mkdir bin cat > bin/my-python << 'END' #! /bin/sh -exec python ${1+"$@"} +exec $saved_PYTHON ${1+"$@"} END chmod a+x bin/my-python PATH=$(pwd)/bin$PATH_SEPARATOR$PATH |