From: David Levine Date: Thu, 2 May 2013 01:38:48 +0000 (-0500) Subject: Set the return status from the check() function of the test X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/55bcb773a386a09ea456ea40bc479b34b4227fe8 Set the return status from the check() function of the test suite if the check failed. --- diff --git a/test/common.sh.in b/test/common.sh.in index ff06312f..1d55dff5 100644 --- a/test/common.sh.in +++ b/test/common.sh.in @@ -166,6 +166,8 @@ check() { echo echo "$0: test failed, outputs are in $first and $second." failed=`expr ${failed:-0} + 1` + #### Set return status of the function. + [ $failed -eq 0 ] fi }