diff options
author | Rob Landley <rob@landley.net> | 2019-05-12 16:29:36 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-05-12 16:29:36 -0500 |
commit | 01bb248ca03cecbee45f8bdc1ad562ea2dd87b27 (patch) | |
tree | 89e22167f84415df9e5fabca87dec48a63cfab8d /scripts | |
parent | d42656a543676241067a87de7a833807917e5002 (diff) | |
download | toybox-01bb248ca03cecbee45f8bdc1ad562ea2dd87b27.tar.gz |
Add VERBOSE=nopass to not show successful tests.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/runtest.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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 |