Exit with 1 on test failures

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@39093 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2015-10-26 10:20:06 +00:00
parent 908a4e5d00
commit a4067468e0
2 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2015-11-26 Richard Frith-Macdonald <rfm@gnu.org>
* TestFramework/gnustep-tests.in:
Exit with status 1 if there are any test failures, 0 otherwise.
2015-11-24 Richard Frith-Macdonald <rfm@gnu.org>
* Instance/framework.make:

View file

@ -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 @@ else
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