changeset 19247:b43ed416bc2d

run-tests: regroup some initialization checks
author Matt Mackall <mpm@selenic.com>
date Fri, 24 May 2013 13:53:56 -0500
parents 29ddf9d93e35
children 6a127fa5de23
files tests/run-tests.py
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Fri May 24 13:52:05 2013 -0500
+++ b/tests/run-tests.py	Fri May 24 13:53:56 2013 -0500
@@ -905,13 +905,6 @@
                     ignore("doesn't match keyword")
                     return None
 
-    vlog("# Test", test)
-
-    createhgrc(HGRCPATH, options)
-
-    if os.path.exists(err):
-        os.remove(err)       # Remove any previous output files
-
     for ext, func, out in testtypes:
         if lctest.startswith("test-") and lctest.endswith(ext):
             runner = func
@@ -920,6 +913,13 @@
     else:
         return skip("unknown test type")
 
+    vlog("# Test", test)
+
+    createhgrc(HGRCPATH, options)
+
+    if os.path.exists(err):
+        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))