run-tests: use correct python safely under --jobs
authorBryan O'Sullivan <bryano@fb.com>
Mon, 10 Dec 2012 12:14:55 -0800
changeset 18050 5522a7951bd7
parent 18049 07ad75b22910
child 18051 48f797ac0879
child 18056 7c9b07f0da73
run-tests: use correct python safely under --jobs
tests/run-tests.py
--- a/tests/run-tests.py	Mon Dec 10 12:09:02 2012 -0800
+++ b/tests/run-tests.py	Mon Dec 10 12:14:55 2012 -0800
@@ -370,6 +370,10 @@
         # windows fallback
         shutil.copyfile(sys.executable, mypython)
         shutil.copymode(sys.executable, mypython)
+    except OSError, err:
+        # child processes may race, which is harmless
+        if err.errno != errno.EEXIST:
+            raise
 
 def installhg(options):
     vlog("# Performing temporary installation of HG")