]> err.no Git - util-linux/commitdiff
tests: add return code
authorKarel Zak <kzak@redhat.com>
Sun, 28 Jan 2007 00:24:15 +0000 (01:24 +0100)
committerKarel Zak <kzak@redhat.com>
Sun, 28 Jan 2007 00:24:15 +0000 (01:24 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/run.sh

index feb0089ffd31f44fd830df57638ae375291016eb..4a475d826512d0181c502ba719c101d79953e445 100755 (executable)
@@ -20,8 +20,10 @@ echo
 echo "---------------------------------------------------------------------"
 if [ $res -eq 0 ]; then
        echo "  All $count tests PASSED"
+       res=0
 else
        echo "  $res tests of $count FAILED"
+       res=1
 fi
 echo "---------------------------------------------------------------------"
-
+exit $res