summaryrefslogtreecommitdiff
path: root/t/python-too-old.sh
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-11-11 12:03:46 +0100
committerStefano Lattarini <stefano.lattarini@gmail.com>2012-11-11 12:11:13 +0100
commitc3dc900373daa90464d3f16598f941c5a564c3b5 (patch)
treefba3ef4db7a4d9fdd2c2a418742941545d1912d9 /t/python-too-old.sh
parent2ccd405661bf7f49d14c5be54d4adacb046d521c (diff)
downloadautomake-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-xt/python-too-old.sh3
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