Patchwork [1,of,3,in,crew] run-tests: use correct python when run with --local

login
register
mail settings
Submitter Bryan O'Sullivan
Date Dec. 10, 2012, 8:35 p.m.
Message ID <9b7288fc7bf23c3efbbf.1355171710@dev1718.prn1.facebook.com>
Download mbox | patch
Permalink /patch/45/
State Accepted
Commit 9b7288fc7bf23c3efbbf6f612e6e542365020a45
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 1355170062 28800
# Node ID 9b7288fc7bf23c3efbbf6f612e6e542365020a45
# Parent  9196638b08cee5a39d4b8d6b9054d0ff3cb48481
run-tests: use correct python when run with --local

Patch

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -1030,6 +1030,8 @@ 
     if INST:
         installhg(options)
         _checkhglib("Testing")
+    else:
+        usecorrectpython()
 
     optcopy = dict(options.__dict__)
     optcopy['jobs'] = 1
@@ -1149,6 +1151,8 @@ 
         if INST:
             installhg(options)
             _checkhglib("Testing")
+        else:
+            usecorrectpython()
 
         if options.restart:
             orig = list(tests)