# HG changeset patch # User Bryan O'Sullivan # Date 1355170495 28800 # Node ID 5522a7951bd7e2b16831ba1736feb2e9145d7e58 # Parent 07ad75b229109e6b2046fd5bd7adc346c964078f run-tests: use correct python safely under --jobs diff -r 07ad75b22910 -r 5522a7951bd7 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")