changeset 19243:050c6fae40d2

run-tests: regroup temp dir creation
author Matt Mackall <mpm@selenic.com>
date Fri, 24 May 2013 13:47:17 -0500
parents d25fc3264d44
children eee43d763f9f
files tests/run-tests.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Fri May 24 13:41:20 2013 -0500
+++ b/tests/run-tests.py	Fri May 24 13:47:17 2013 -0500
@@ -918,6 +918,7 @@
     # 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 @@
     else:
         replacements.append((re.escape(testtmp), '$TESTTMP'))
 
-    os.mkdir(testtmp)
     if options.time:
         starttime = time.time()
     ret, out = runner(testpath, testtmp, options, replacements)