[PATCH V2] run-tests: report tests as failed when run-test raises an error

Augie Fackler raf at durin42.com
Thu Jan 16 12:25:09 CST 2014


On Thu, Jan 16, 2014 at 07:11:33PM +0100, Simon Heimberg wrote:
> # HG changeset patch
> # User Simon Heimberg <simohe at besonet.ch>
> # Date 1389894935 -3600
> # Node ID 847ba1b088c409c1bf093cee39acb9cfb2f5639c
> # Parent  51014454e4ba19cccb978609a888410327505e13
> run-tests: report tests as failed when run-test raises an error

Thanks, I'll splice this in using obsolete to replace the older version.

>
> 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 -r 51014454e4ba -r 847ba1b088c4 tests/run-tests.py
> --- a/tests/run-tests.py	Don Jan 16 11:26:54 2014 +0100
> +++ b/tests/run-tests.py	Don Jan 16 18:55:35 2014 +0100
> @@ -1092,6 +1092,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:


More information about the Mercurial-devel mailing list