From 01bb248ca03cecbee45f8bdc1ad562ea2dd87b27 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 12 May 2019 16:29:36 -0500 Subject: Add VERBOSE=nopass to not show successful tests. --- scripts/runtest.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/runtest.sh b/scripts/runtest.sh index 6ba1d3f6..abd924d9 100644 --- a/scripts/runtest.sh +++ b/scripts/runtest.sh @@ -10,6 +10,7 @@ # DEBUG - Show every command run by test script. # VERBOSE - Print the diff -u of each failed test case. # If equal to "fail", stop after first failed test. +# "nopass" to not show successful tests # # The "testcmd" function takes five arguments: # $1) Description to display when running command @@ -134,7 +135,7 @@ testing() [ "$VERBOSE" == fail ] && exit 1 fi else - printf "%s\n" "$SHOWPASS: $NAME" + [ "$VERBOSE" != "nopass" ] && printf "%s\n" "$SHOWPASS: $NAME" fi rm -f input expected actual -- cgit v1.2.3