# HG changeset patch # User Simon Heimberg # Date 1389868014 -3600 # Node ID 4e600dd12c89e840ed2687b306bc1fae8c073b0e # Parent f7923ea4b188cb8c99c2b6719c4e1f8e997635d4 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): ... [ original upstream message ] diff -r f7923ea4b188 -r 4e600dd12c89 tests/run-tests.py --- 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