##// END OF EJS Templates
run-tests: regroup some variable initialization
Matt Mackall -
r19245:dcb05a14 default
parent child Browse files
Show More
@@ -832,8 +832,6 b' def runone(options, test):'
832 832
833 833 global results, resultslock, iolock
834 834
835 testpath = os.path.join(TESTDIR, test)
836
837 835 def result(l, e):
838 836 resultslock.acquire()
839 837 results[l].append(e)
@@ -879,6 +877,10 b' def runone(options, test):'
879 877 return 'killed by signal %d' % -ret
880 878 return 'returned error code %d' % ret
881 879
880 testpath = os.path.join(TESTDIR, test)
881 err = os.path.join(TESTDIR, test + ".err")
882 lctest = test.lower()
883
882 884 if not os.path.exists(test):
883 885 skip("doesn't exist")
884 886 return None
@@ -907,10 +909,8 b' def runone(options, test):'
907 909
908 910 createhgrc(HGRCPATH, options)
909 911
910 err = os.path.join(TESTDIR, test+".err")
911 912 if os.path.exists(err):
912 913 os.remove(err) # Remove any previous output files
913 lctest = test.lower()
914 914
915 915 for ext, func, out in testtypes:
916 916 if lctest.startswith("test-") and lctest.endswith(ext):
General Comments 0
You need to be logged in to leave comments. Login now