[PATCH 1 of 2 V3 stable] run-tests: checks behaviour of test on failure while testing
Anurag Goel
anurag.dsps at gmail.com
Fri Jun 13 04:24:21 CDT 2014
# HG changeset patch
# User anuraggoel <anurag.dsps at gmail.com>
# Date 1402650182 -19800
# Fri Jun 13 14:33:02 2014 +0530
# Node ID ef9bd057d520d30d993c73f4b3b65e3c908039b3
# Parent e167dbc563e334d774952a65bf7c1f0d0d96441f
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 e167dbc563e3 -r ef9bd057d520 tests/run-tests.py
--- a/tests/run-tests.py Fri Jun 13 13:25:28 2014 +0530
+++ b/tests/run-tests.py Fri Jun 13 14:33:02 2014 +0530
@@ -466,7 +466,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:
More information about the Mercurial-devel
mailing list