Mercurial > hg
changeset 19265:644604f57e0f
run-tests: write tmp paths into env copy
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 02 Jun 2013 15:33:41 -0500 |
parents | eac114e13b96 |
children | 7815917b5f2a |
files | tests/run-tests.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run-tests.py Sun Jun 02 15:27:08 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()