Mercurial > hg
changeset 20259:bb4aac9b048c
run-tests: set the thread name to the test name for info on error
This does not happen when running normal. But when fiddling around with
the test infrastructure, this helps a lot.
Old traceback messge
Exception in thread Thread-7:
Traceback (most recent call last):
...
new traceback message
Exception in thread test-something.t:
Traceback (most recent call last):
...
author | Simon Heimberg <simohe@besonet.ch> |
---|---|
date | Thu, 16 Jan 2014 11:26:54 +0100 |
parents | 3cd441353d6b |
children | 586ec8fe1c3c |
files | tests/run-tests.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run-tests.py Thu Jan 16 18:55:35 2014 +0100 +++ b/tests/run-tests.py Thu Jan 16 11:26:54 2014 +0100 @@ -1096,7 +1096,7 @@ test = tests.pop(0) if options.loop: tests.append(test) - t = threading.Thread(target=job, args=(test, count)) + t = threading.Thread(target=job, name=test, args=(test, count)) t.start() running += 1 count += 1