# HG changeset patch # User Simon Heimberg # Date 2014-01-16 17:55:35 # Node ID 3cd441353d6ba351b5e9431048726f477e371cfc # Parent 8a8626f2f72e75a783b1e3aaff2c3b6f5ba0132d 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. diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -1077,6 +1077,9 @@ def scheduletests(options, tests): 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: