Bug 906172 - Handle exceptions for sequential tests properly. r=ted

This commit is contained in:
Mihnea Dobrescu-Balaur 2013-08-16 13:42:04 -07:00
parent e9d6cb87c2
commit bb36ce1ca0

View File

@ -1333,11 +1333,13 @@ class XPCShellTests(object):
break
test.start()
test.join()
self.addTestResults(test)
# did the test encounter any exception?
if test.exception:
raise test.exception
exceptions.append(test.exception)
tracebacks.append(test.traceback)
break
keep_going = test.keep_going
self.addTestResults(test)
# restore default SIGINT behaviour
signal.signal(signal.SIGINT, signal.SIG_DFL)