tests - add -v option to set TEST_VERBOSE=true
authorMartin Schwenke <martin@meltin.net>
Mon, 16 Apr 2012 04:51:22 +0000 (14:51 +1000)
committerMartin Schwenke <martin@meltin.net>
Mon, 16 Apr 2012 04:57:45 +0000 (14:57 +1000)
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 43badc5418b9f533398cd579607d9f1fc0f8f417)

ctdb/tests/scripts/run_tests

index 394b4150acf2125a52e11592f2765425b092be43..51a89bb3a9918877a65f3258822e03f2811a9a91 100755 (executable)
@@ -21,7 +21,9 @@ with_summary=false
 with_desc=false
 quiet=false
 
-temp=$(getopt -n "$prog" -o "xdhqs" -l help -- "$@")
+export TEST_VERBOSE=false
+
+temp=$(getopt -n "$prog" -o "xdhqsv" -l help -- "$@")
 
 [ $? != 0 ] && usage
 
@@ -33,6 +35,7 @@ while true ; do
        -d) with_desc=true ; shift ;;  # 4th line of output is description
        -q) quiet=true ; shift ;;
        -s) with_summary=true ; shift ;;
+       -v) TEST_VERBOSE=true ; shift ;;
        --) shift ; break ;;
        *) usage ;;
     esac