tests/run-tests.py
branchstable
changeset 1231 c6a4dd8d18a9
parent 1230 29767671c053
child 1232 8730a2885d7c
--- 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)