# HG changeset patch # User Matt Mackall # Date 2013-05-24 18:47:17 # Node ID 050c6fae40d2c572af7c24b992a9c7b655c9f4f7 # Parent d25fc3264d446741de262b3fd4d2981ba5631eca run-tests: regroup temp dir creation diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -918,6 +918,7 @@ def runone(options, test): # Make a tmp subdirectory to work in testtmp = os.environ["TESTTMP"] = os.environ["HOME"] = \ os.path.join(HGTMP, os.path.basename(test)) + os.mkdir(testtmp) replacements = [ (r':%s\b' % options.port, ':$HGPORT'), @@ -934,7 +935,6 @@ def runone(options, test): else: replacements.append((re.escape(testtmp), '$TESTTMP')) - os.mkdir(testtmp) if options.time: starttime = time.time() ret, out = runner(testpath, testtmp, options, replacements)