Tests: let --valgrind imply --verbose and --tee
[gitweb.git] / t / test-lib.sh
index 34f372c92ffa659c4cc2f155bd40dd2ebd7be6af..bc87936babfd5fd7951904f18ad0e734fd3186b4 100644 (file)
@@ -9,7 +9,7 @@ case "$GIT_TEST_TEE_STARTED, $* " in
 done,*)
        # do not redirect again
        ;;
-*' --tee '*)
+*' --tee '*|*' --va'*)
        mkdir -p test-results
        BASE=test-results/$(basename "$0" .sh)
        (GIT_TEST_TEE_STARTED=done ${SHELL-sh} "$0" "$@" 2>&1;
@@ -111,7 +111,7 @@ do
                # noop now...
                shift ;;
        --va|--val|--valg|--valgr|--valgri|--valgrin|--valgrind)
-               valgrind=t; shift ;;
+               valgrind=t; verbose=t; shift ;;
        --tee)
                shift ;; # was handled already
        *)