tests: tests.sh returns 1 if some tests fails
authorJean Privat <jean@pryen.org>
Wed, 10 Jun 2009 13:54:50 +0000 (09:54 -0400)
committerJean Privat <jean@pryen.org>
Wed, 10 Jun 2009 13:59:35 +0000 (09:59 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

tests/tests.sh

index 1f400bb..a24bf32 100755 (executable)
@@ -122,3 +122,9 @@ fi
 if [ -n "$nos" ]; then
        echo "no sav: $nos"
 fi
+
+if [ -n "$nok" ]; then
+       exit 1
+else
+       exit 0
+fi