[Xfce4-commits] <midori:master> Return with an error code from build if tests fail

Christian Dywan noreply at xfce.org
Mon Nov 19 01:58:05 CET 2012


Updating branch refs/heads/master
         to 9f1314f67531b6d56f004627290303f01c8783d6 (commit)
       from d21263985bafef300a99e8d03e9698d80da0705e (commit)

commit 9f1314f67531b6d56f004627290303f01c8783d6
Author: Christian Dywan <christian at twotoasts.de>
Date:   Mon Nov 19 01:56:35 2012 +0100

    Return with an error code from build if tests fail

 wscript |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/wscript b/wscript
index 5bceed7..8e49a42 100644
--- a/wscript
+++ b/wscript
@@ -582,6 +582,9 @@ def shutdown ():
             else:
                 Utils.pprint ('GREEN', label + '.......OK')
 
+        if test.num_tests_failed > 0 or test.num_tests_err > 0:
+            sys.exit (1)
+
     elif Options.options.update_po:
         os.chdir('./po')
         try:


More information about the Xfce4-commits mailing list