changeset 18050:5522a7951bd7

run-tests: use correct python safely under --jobs
author Bryan O'Sullivan <bryano@fb.com>
date Mon, 10 Dec 2012 12:14:55 -0800
parents 07ad75b22910
children 7c9b07f0da73 48f797ac0879
files tests/run-tests.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -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")