tests: let --stress-limit=<N> imply --stress
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 3 Mar 2019 14:44:54 +0000 (06:44 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 4 Mar 2019 03:25:22 +0000 (12:25 +0900)
It does not make much sense that running a test with
--stress-limit=<N> seemingly ignores that option because it does not
stress test at all.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/README
t/test-lib.sh
index 886bbec5bc8e40995817c042874be4860a4b58b8..48fd4009e12b40b66cb3cae3891c651b9ec04591 100644 (file)
--- a/t/README
+++ b/t/README
@@ -214,7 +214,7 @@ appropriately before running "make".
 --stress-limit=<N>::
        When combined with --stress run the test script repeatedly
        this many times in each of the parallel jobs or until one of
-       them fails, whichever comes first.
+       them fails, whichever comes first. Implies `--stress`.
 
 You can also set the GIT_TEST_INSTALLED environment variable to
 the bindir of an existing git installation to test that installation.
index 8665b0a9b6186a7ad17889213f5225265c9f27d1..8553c1ff8764da221b484b43e3c46f6b5d6d5989 100644 (file)
@@ -158,6 +158,7 @@ do
                esac
                ;;
        --stress-limit=*)
+               stress=t;
                stress_limit=${opt#--*=}
                case "$stress_limit" in
                *[!0-9]*|0*|"")