Author: rfm
Date: Mon Oct 26 11:20:06 2015
New Revision: 39093

URL: http://svn.gna.org/viewcvs/gnustep?rev=39093&view=rev
Log:
Exit with 1 on test failures

Modified:
    tools/make/trunk/ChangeLog
    tools/make/trunk/TestFramework/gnustep-tests.in

Modified: tools/make/trunk/ChangeLog
URL: 
http://svn.gna.org/viewcvs/gnustep/tools/make/trunk/ChangeLog?rev=39093&r1=39092&r2=39093&view=diff
==============================================================================
--- tools/make/trunk/ChangeLog  (original)
+++ tools/make/trunk/ChangeLog  Mon Oct 26 11:20:06 2015
@@ -1,3 +1,8 @@
+2015-11-26 Richard Frith-Macdonald <[email protected]>
+
+       * TestFramework/gnustep-tests.in:
+       Exit with status 1 if there are any test failures, 0 otherwise.
+
 2015-11-24 Richard Frith-Macdonald <[email protected]>
 
        * Instance/framework.make:

Modified: tools/make/trunk/TestFramework/gnustep-tests.in
URL: 
http://svn.gna.org/viewcvs/gnustep/tools/make/trunk/TestFramework/gnustep-tests.in?rev=39093&r1=39092&r2=39093&view=diff
==============================================================================
--- tools/make/trunk/TestFramework/gnustep-tests.in     (original)
+++ tools/make/trunk/TestFramework/gnustep-tests.in     Mon Oct 26 11:20:06 2015
@@ -27,6 +27,7 @@
 # summary to stdout.
 # The log and summary from the previous testrun are renamed to
 # oldtests.log and oldtests.sum, available for comparison.
+# The exit value of the script is 0 if there are no failures, 1 otherwise.
 
 if test -z "$GNUSTEP_MAKEFILES"; then
   GNUSTEP_MAKEFILES=`gnustep-config --variable=GNUSTEP_MAKEFILES 2>/dev/null`
@@ -765,7 +766,16 @@
   RUNCMD=$GSTESTTOP/Summary.sh
 fi
 $RUNCMD
+FAILS=$?
 
 # Delete the temporary file.
 rm -f tests.tmp tests.sum.tmp tests.log.tmp
 
+# Our exit status is 0 unless some test failed.
+present "$GSTESTSUM" "Failed set$" "Failed sets$" "Failed test$" "Failed 
tests$" "Failed build$" "Failed builds$" "Failed file$" "Failed files$"
+if [ $? = 1 ]
+then
+  exit 0
+else
+  exit 1
+fi


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to