changeset 18049:07ad75b22910

run-tests: check for the correct python when starting
author Bryan O'Sullivan <bryano@fb.com>
date Mon, 10 Dec 2012 12:09:02 -0800
parents 9b7288fc7bf2
children 5522a7951bd7
files tests/run-tests.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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),