Mercurial > hg-stable
changeset 19273:f3effc499288
run-tests: add abort flag
This will be used to help threads clean up gracefully
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 02 Jun 2013 16:29:35 -0500 |
parents | 16df87e25f41 |
children | 6f666780f846 |
files | tests/run-tests.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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: