mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 22:33:28 +00:00
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:
parent
908a4e5d00
commit
a4067468e0
2 changed files with 15 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue