##// END OF EJS Templates
run-tests: move test loop into a helper function
Matt Mackall -
r13995:b29b7cbc default
parent child Browse files
Show More
@@ -934,6 +934,12 b' def runchildren(options, tests):'
934 outputcoverage(options)
934 outputcoverage(options)
935 sys.exit(failures != 0)
935 sys.exit(failures != 0)
936
936
937 def runqueue(options, tests, results):
938 for test in tests:
939 ret = runone(options, test, results)
940 if options.first and ret is not None and not ret:
941 break
942
937 def runtests(options, tests):
943 def runtests(options, tests):
938 global DAEMON_PIDS, HGRCPATH
944 global DAEMON_PIDS, HGRCPATH
939 DAEMON_PIDS = os.environ["DAEMON_PIDS"] = os.path.join(HGTMP, 'daemon.pids')
945 DAEMON_PIDS = os.environ["DAEMON_PIDS"] = os.path.join(HGTMP, 'daemon.pids')
@@ -965,10 +971,7 b' def runtests(options, tests):'
965 print "running all tests"
971 print "running all tests"
966 tests = orig
972 tests = orig
967
973
968 for test in tests:
974 runqueue(options, tests, results)
969 ret = runone(options, test, results)
970 if options.first and ret is not None and not ret:
971 break
972
975
973 failed = len(results['f'])
976 failed = len(results['f'])
974 tested = len(results['p']) + failed
977 tested = len(results['p']) + failed
General Comments 0
You need to be logged in to leave comments. Login now