]> asedeno.scripts.mit.edu Git - git.git/blobdiff - t/test-lib.sh
test-lib: Ignore --quiet under a TAP harness
[git.git] / t / test-lib.sh
index ac496aa479090a4cda1b6e854ed7845484fdfa06..a827a0f0c8a69f6c084fc81b12993711a9977eb2 100644 (file)
@@ -127,7 +127,9 @@ do
        -v|--v|--ve|--ver|--verb|--verbo|--verbos|--verbose)
                verbose=t; shift ;;
        -q|--q|--qu|--qui|--quie|--quiet)
-               quiet=t; shift ;;
+               # Ignore --quiet under a TAP::Harness. Saying how many tests
+               # passed without the ok/not ok details is always an error.
+               test -z "$HARNESS_ACTIVE" && quiet=t; shift ;;
        --with-dashes)
                with_dashes=t; shift ;;
        --no-color)