summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c966745)
raw | patch | inline | side by side (parent: c966745)
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | |
Sat, 31 Jul 2010 16:40:05 +0000 (16:40 +0000) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 2 Aug 2010 18:53:48 +0000 (11:53 -0700) |
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>
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>
t/test-lib.sh | patch | blob | history |
diff --git a/t/test-lib.sh b/t/test-lib.sh
index ac496aa479090a4cda1b6e854ed7845484fdfa06..a827a0f0c8a69f6c084fc81b12993711a9977eb2 100644 (file)
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
-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)