# HG changeset patch # User Matt Mackall # Date 1369421636 18000 # Node ID b43ed416bc2d5d80c6f060efbcf95caf2792b3fc # Parent 29ddf9d93e35a256d7ed4ffcb4326b8977b0c01e run-tests: regroup some initialization checks diff -r 29ddf9d93e35 -r b43ed416bc2d tests/run-tests.py --- 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))