@matheusbsbs / matheus-bagliano / commits / 092c433407
Fork 0

test-lib: Ignore --quiet under a TAP harness

Running the tests with --quiet under a TAP harness will always fail, since a TAP harness always needs actual test output to go along with the plan that's being emitted. Change the test-lib.sh to ignore the --quiet option under HARNESS_ACTIVE to work around this. Then users that have --quiet in their GIT_TEST_OPTS can run tests under prove(1) without everything breaking. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ævar Arnfjörð Bjarmason committed Jul 31, 2010 at 16:40 UTC 092c433407279219cb21819d971da0fbf4a60dcd
1 file changed +3 -1
t/test-lib.sh
+3 -1
@@ -127,7 +127,9 @@ do
127 -v|--v|--ve|--ver|--verb|--verbo|--verbos|--verbose)
128 verbose=t; shift ;;
129 -q|--q|--qu|--qui|--quie|--quiet)
130 - quiet=t; shift ;;
130 + # Ignore --quiet under a TAP::Harness. Saying how many tests
131 + # passed without the ok/not ok details is always an error.
132 + test -z "$HARNESS_ACTIVE" && quiet=t; shift ;;
133 --with-dashes)
134 with_dashes=t; shift ;;
135 --no-color)