[PATCH 4 of 7] run-tests: separate exit code when no failed tests but warned ones
Simon Heimberg
simohe at besonet.ch
Thu Feb 13 22:36:58 UTC 2014
# HG changeset patch
# User Simon Heimberg <simohe at besonet.ch>
# Date 1392275859 -3600
# Thu Feb 13 08:17:39 2014 +0100
# Node ID 8a00507aa070e25b79f43f70d94b0a0034188ea8
# Parent 6f3a78790475271b5f3a0a1bd02f2573f71309d1
run-tests: separate exit code when no failed tests but warned ones
This can be used by buildbot to set the result "warnings" instead of "failed".
diff -r 6f3a78790475 -r 8a00507aa070 tests/run-tests.py
--- a/tests/run-tests.py Thu Feb 13 08:14:54 2014 +0100
+++ b/tests/run-tests.py Thu Feb 13 08:17:39 2014 +0100
@@ -1167,6 +1167,8 @@
if failed:
return 1
+ if warned:
+ return 80
testtypes = [('.py', pytest, '.out'),
('.t', tsttest, '')]
More information about the Mercurial-devel
mailing list