[PATCH 2 of 3 in crew] run-tests: check for the correct python when starting

Bryan O'Sullivan bos at serpentine.com
Mon Dec 10 14:35:11 CST 2012


# HG changeset patch
# User Bryan O'Sullivan <bryano at fb.com>
# Date 1355170142 28800
# Node ID 07ad75b229109e6b2046fd5bd7adc346c964078f
# Parent  9b7288fc7bf23c3efbbf6f612e6e542365020a45
run-tests: check for the correct python when starting

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -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),


More information about the Mercurial-devel mailing list