Mercurial > hg-stable
changeset 20258:3cd441353d6b
run-tests: report tests as failed when run-test raises an error
Before no message was returned to the main thread. No result was registered
and no new thread was started.
This does not happen when running normal. But when fiddling around with
the test infrastructure, this helps a lot.
author | Simon Heimberg <simohe@besonet.ch> |
---|---|
date | Thu, 16 Jan 2014 18:55:35 +0100 |
parents | 8a8626f2f72e |
children | bb4aac9b048c |
files | tests/run-tests.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run-tests.py Wed Jan 08 00:47:45 2014 +0900 +++ b/tests/run-tests.py Thu Jan 16 18:55:35 2014 +0100 @@ -1077,6 +1077,9 @@ done.put(runone(options, test, count)) except KeyboardInterrupt: pass + except: # re-raises + done.put(('!', test, 'run-test raised an error, see traceback')) + raise try: while tests or running: