run-tests: separate exit code when no failed tests but warned ones stable
authorSimon Heimberg <simohe@besonet.ch>
Thu, 13 Feb 2014 08:17:39 +0100
branchstable
changeset 1337 6810b3c166cc
parent 1336 c213fb7b786f
child 1338 a1bbad0e5e24
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". [ original upstream message ]
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, '')]