comparison tests/run-tests.py @ 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 48f797ac0879 6b88ded2a993
comparison
equal deleted inserted replaced
18049:07ad75b22910 18050:5522a7951bd7
368 os.symlink(sys.executable, mypython) 368 os.symlink(sys.executable, mypython)
369 except AttributeError: 369 except AttributeError:
370 # windows fallback 370 # windows fallback
371 shutil.copyfile(sys.executable, mypython) 371 shutil.copyfile(sys.executable, mypython)
372 shutil.copymode(sys.executable, mypython) 372 shutil.copymode(sys.executable, mypython)
373 except OSError, err:
374 # child processes may race, which is harmless
375 if err.errno != errno.EEXIST:
376 raise
373 377
374 def installhg(options): 378 def installhg(options):
375 vlog("# Performing temporary installation of HG") 379 vlog("# Performing temporary installation of HG")
376 installerrs = os.path.join("tests", "install.err") 380 installerrs = os.path.join("tests", "install.err")
377 compiler = '' 381 compiler = ''