]> diplodocus.org Git - nmh/commitdiff
Set the return status from the check() function of the test
authorDavid Levine <levinedl@acm.org>
Thu, 2 May 2013 01:38:48 +0000 (20:38 -0500)
committerDavid Levine <levinedl@acm.org>
Thu, 2 May 2013 01:38:48 +0000 (20:38 -0500)
suite if the check failed.

test/common.sh.in

index ff06312..1d55dff 100644 (file)
@@ -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
 }