Add -v flag to run that prints success
authorMatthew McPherrin <matthew@mcpherrin.ca>
Wed, 14 Mar 2012 20:04:32 +0000 (16:04 -0400)
committerMatthew McPherrin <matthew@mcpherrin.ca>
Wed, 14 Mar 2012 20:04:32 +0000 (16:04 -0400)
run

diff --git a/run b/run
index c7fe7ad..80cb6b6 100755 (executable)
--- a/run
+++ b/run
@@ -1,9 +1,14 @@
 #!/bin/bash
 
+fail=0
 for i in "`dirname $0`"/tests.d/*; do
        $i
        if [ $? -ne 0 ]; then
                echo "FAIL: `basename $i`"
-               exit 1
+               fail=1
+       elif [ "$1" == "-v" ]; then
+               echo "Pass: $i"
        fi
 done
+
+exit $fail