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

login
register
mail settings
Submitter Bryan O'Sullivan
Date Dec. 10, 2012, 8:35 p.m.
Message ID <07ad75b229109e6b2046.1355171711@dev1718.prn1.facebook.com>
Download mbox | patch
Permalink /patch/46/
State Accepted
Commit 07ad75b229109e6b2046fd5bd7adc346c964078f
Headers show

Comments

Bryan O'Sullivan - Dec. 10, 2012, 8:35 p.m.
# 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

Patch

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),