summaryrefslogtreecommitdiff
path: root/scripts/TestUtil.py
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2009-04-21 09:48:58 -0230
committerDwayne Boone <dwayne@zeroc.com>2009-04-21 09:48:58 -0230
commitd68bd5a063bfdabc338a93b122a08a22ecbd8c34 (patch)
treecee1074be174ca7400db94145faaa9b609729510 /scripts/TestUtil.py
parentBug 3900 - remove IlligalIndirectionException (diff)
downloadice-d68bd5a063bfdabc338a93b122a08a22ecbd8c34.tar.bz2
ice-d68bd5a063bfdabc338a93b122a08a22ecbd8c34.tar.xz
ice-d68bd5a063bfdabc338a93b122a08a22ecbd8c34.zip
Bug 3957 - ensure python that starts scripts is same as one it uses internally
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-xscripts/TestUtil.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py
index acb3a85b7b6..69762dcca9f 100755
--- a/scripts/TestUtil.py
+++ b/scripts/TestUtil.py
@@ -721,9 +721,9 @@ def getCommandLine(exe, config):
print >>output, "-d64",
if not config.ipv6:
print >>output, "-Djava.net.preferIPv4Stack=true",
- print >>output, exe,
+ print >>output, exe,
elif config.lang == "py":
- print >>output, "python", exe,
+ print >>output, sys.executable, exe,
elif config.lang == "php" and config.type == "client":
print >>output, phpCmd, "-c tmp.ini -f", exe, " -- ",
elif config.lang == "cpp" and config.valgrind:
@@ -1255,13 +1255,13 @@ def runTests(start, expanded, num = 0, script = False):
global keepGoing
if script:
- print "if ! python %s %s; then" % (os.path.join(dir, "run.py"), args)
+ print "if ! %s %s %s; then" % (sys.executable, os.path.join(dir, "run.py"), args)
print " echo 'test in %s failed'" % os.path.abspath(dir)
if not keepGoing:
print " exit 1"
print "fi"
else:
- status = os.system("python " + os.path.join(dir, "run.py " + args))
+ status = os.system(sys.executable + " " + os.path.join(dir, "run.py " + args))
if status:
if(num > 0):