Patchwork [4,of,7] run-tests: separate exit code when no failed tests but warned ones

login
register
mail settings
Submitter Simon Heimberg
Date Feb. 13, 2014, 10:36 p.m.
Message ID <8a00507aa070e25b79f4.1392331018@lapsasi>
Download mbox | patch
Permalink /patch/3647/
State Accepted
Commit 38444739a69f92c7b4017dd5bd5a9bcd9c66331f
Headers show

Comments

Simon Heimberg - Feb. 13, 2014, 10:36 p.m.
# HG changeset patch
# User Simon Heimberg <simohe@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".

Patch

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, '')]