Merge branch 'ab/tap' into maint
authorJunio C Hamano <gitster@pobox.com>
Mon, 2 Aug 2010 18:53:58 +0000 (11:53 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Aug 2010 18:53:58 +0000 (11:53 -0700)
* ab/tap:
test-lib: Remove 3 year old no-op --no-python option
test-lib: Ignore --quiet under a TAP harness

t/test-lib.sh
index e5523dd690a43fdcf315e7e952d4d316182eeb25..e8f21d577ce4da474e2a9545a667ff5dc6dc145f 100644 (file)
@@ -127,14 +127,13 @@ 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)
                color=; shift ;;
-       --no-python)
-               # noop now...
-               shift ;;
        --va|--val|--valg|--valgr|--valgri|--valgrin|--valgrind)
                valgrind=t; verbose=t; shift ;;
        --tee)