changeset 1878:a5c46cff620f

Make #!/usr/bin/env python in test-bdiff run the specified python version.
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 10 Mar 2006 19:16:49 +0100
parents d314a89fa4f1
children 9ef0850b9b68
files tests/run-tests
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests	Fri Mar 10 08:31:31 2006 -0800
+++ b/tests/run-tests	Fri Mar 10 19:16:49 2006 +0100
@@ -53,7 +53,16 @@
 fi
 cd "$TESTDIR"
 
-PATH="$INST/bin:$PATH"; export PATH
+BINDIR="$INST/bin"
+PATH="$BINDIR:$PATH"; export PATH
+if [ -n "$PYTHON" ]; then
+    {
+        echo "#!/bin/sh"
+        echo "exec \"$PYTHON"'" "$@"'
+    } > "$BINDIR/python"
+    chmod 755 "$BINDIR/python"
+fi
+
 PYTHONPATH="$PYTHONDIR"; export PYTHONPATH
 
 run_one() {