summaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/test-lib.sh')
-rw-r--r--t/test-lib.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 66efcdaacd..714de6e575 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -80,6 +80,8 @@ do
exit 0 ;;
-v|--v|--ve|--ver|--verb|--verbo|--verbos|--verbose)
verbose=t; shift ;;
+ -q|--q|--qu|--qui|--quie|--quiet)
+ quiet=t; shift ;;
--no-color)
color=; shift ;;
--no-python)
@@ -97,7 +99,7 @@ if test -n "$color"; then
skip) tput bold; tput setaf 2;; # bold green
pass) tput setaf 2;; # green
info) tput setaf 3;; # brown
- *);;
+ *) test -n "$quiet" && return;;
esac
shift
echo "* $*"
@@ -105,6 +107,7 @@ if test -n "$color"; then
}
else
say_color() {
+ test -z "$1" && test -n "$quiet" && return
shift
echo "* $*"
}