diff --git a/t/test-lib.sh b/t/test-lib.sh
index 66efcdaacd72c0242a567830ea9a4cf95fc0860d..714de6e5753e200d8685ef244a428d099a3ae95d 100644 (file)
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
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)
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 "* $*"
}
else
say_color() {
+ test -z "$1" && test -n "$quiet" && return
shift
echo "* $*"
}