# HG changeset patch # User Matt Mackall # Date 1370208575 18000 # Node ID 5dfbf34da36184d184bd72b23d51641ad338870e # Parent d0b3f7f38c728c687da487eb3cb1b56bcc66bd13 run-tests: add abort flag This will be used to help threads clean up gracefully [ original upstream message ] diff -r d0b3f7f38c72 -r 5dfbf34da361 tests/run-tests.py --- a/tests/run-tests.py Sun Jun 02 16:29:22 2013 -0500 +++ b/tests/run-tests.py Sun Jun 02 16:29:35 2013 -0500 @@ -863,6 +863,9 @@ if ret: killdaemons(env['DAEMON_PIDS']) + if abort: + raise KeyboardInterrupt() + for s, r in replacements: output = re.sub(s, r, output) return ret, output.splitlines(True) @@ -1182,6 +1185,7 @@ resultslock = threading.Lock() times = [] iolock = threading.Lock() +abort = False def runqueue(options, tests): for test in tests: