# HG changeset patch # User Matt Mackall # Date 1370205221 18000 # Node ID 00ca4c2f51cc8741a2e349beae1ae1e7a051b521 # Parent 2d7fa9712652f8b4cc109b248b6fb9c24a63ddd7 run-tests: write tmp paths into env copy [ original upstream message ] diff -r 2d7fa9712652 -r 00ca4c2f51cc tests/run-tests.py --- a/tests/run-tests.py Sun Jun 02 14:04:55 2013 -0500 +++ b/tests/run-tests.py Sun Jun 02 15:33:41 2013 -0500 @@ -911,8 +911,7 @@ os.remove(err) # Remove any previous output files # Make a tmp subdirectory to work in - testtmp = os.environ["TESTTMP"] = os.environ["HOME"] = \ - os.path.join(HGTMP, os.path.basename(test)) + testtmp = os.path.join(HGTMP, os.path.basename(test)) os.mkdir(testtmp) replacements = [ @@ -931,6 +930,8 @@ replacements.append((re.escape(testtmp), '$TESTTMP')) env = os.environ.copy() + env['TESTTMP'] = testtmp + env['HOME'] = testtmp if options.time: starttime = time.time()