run-tests: regroup temp dir creation
authorMatt Mackall <mpm@selenic.com>
Fri, 24 May 2013 13:47:17 -0500
changeset 19243 050c6fae40d2
parent 19242 d25fc3264d44
child 19244 eee43d763f9f
run-tests: regroup temp dir creation
tests/run-tests.py
--- 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)