run-tests: use correct python when run with --local stable
authorBryan O'Sullivan <bryano@fb.com>
Mon, 10 Dec 2012 12:07:42 -0800
branchstable
changeset 1168 96a0960a7909
parent 1166 d38c648869bb
child 1169 28f06763bfb2
run-tests: use correct python when run with --local [ original upstream message ]
tests/run-tests.py
--- a/tests/run-tests.py	Tue Nov 27 13:09:05 2012 -0800
+++ b/tests/run-tests.py	Mon Dec 10 12:07:42 2012 -0800
@@ -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)