run-tests: check for the correct python when starting stable
authorBryan O'Sullivan <bryano@fb.com>
Mon, 10 Dec 2012 12:09:02 -0800
branchstable
changeset 1169 28f06763bfb2
parent 1168 96a0960a7909
child 1170 2fb2b92583e4
run-tests: check for the correct python when starting [ original upstream message ]
tests/run-tests.py
--- a/tests/run-tests.py	Mon Dec 10 12:07:42 2012 -0800
+++ b/tests/run-tests.py	Mon Dec 10 12:09:02 2012 -0800
@@ -94,7 +94,8 @@
 if 'java' in sys.platform:
     IMPL_PATH = 'JYTHONPATH'
 
-requiredtools = ["python", "diff", "grep", "unzip", "gunzip", "bunzip2", "sed"]
+requiredtools = [os.path.basename(sys.executable), "diff", "grep", "unzip",
+                 "gunzip", "bunzip2", "sed"]
 
 defaults = {
     'jobs': ('HGTEST_JOBS', 1),