aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-05-12 16:29:36 -0500
committerRob Landley <rob@landley.net>2019-05-12 16:29:36 -0500
commit01bb248ca03cecbee45f8bdc1ad562ea2dd87b27 (patch)
tree89e22167f84415df9e5fabca87dec48a63cfab8d /scripts
parentd42656a543676241067a87de7a833807917e5002 (diff)
downloadtoybox-01bb248ca03cecbee45f8bdc1ad562ea2dd87b27.tar.gz
Add VERBOSE=nopass to not show successful tests.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/runtest.sh3
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