# HG changeset patch # User anuraggoel # Date 1402650182 -19800 # Node ID b7baef94a3331b02db194ed8b64ae699dd9108c8 # Parent c5699c2d690b9543fbeaf0ea1c2bdead2d762bc8 run-tests: checks behaviour of test on failure while testing On failure while testing, if this function "result.addFailure(self, str(e))" returns true then test get 'passed' else count as 'failed'. diff -r c5699c2d690b -r b7baef94a333 tests/run-tests.py --- a/tests/run-tests.py Fri Jun 13 17:42:04 2014 -0500 +++ b/tests/run-tests.py Fri Jun 13 14:33:02 2014 +0530 @@ -469,7 +469,8 @@ # the stack trace. This is for historical reasons and # this decision could be revisted in the future, # especially for PythonTest instances. - result.addFailure(self, str(e)) + if result.addFailure(self, str(e)): + success = True except Exception: result.addError(self, sys.exc_info()) else: