tests: let --stress-limit=<N> imply --stress

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>

Johannes Schindelin committed Mar 3, 2019 at 06:44 UTC de69e6f6c98e92f89b4fdbb91087e85f4af7afab
2 files changed +2 -1
t/README
+1 -1
@@ -214,7 +214,7 @@ appropriately before running "make".
214 --stress-limit=<N>::
215 When combined with --stress run the test script repeatedly
216 this many times in each of the parallel jobs or until one of
217 - them fails, whichever comes first.
217 + them fails, whichever comes first. Implies `--stress`.
218
219 You can also set the GIT_TEST_INSTALLED environment variable to
220 the bindir of an existing git installation to test that installation.
t/test-lib.sh
+1
@@ -158,6 +158,7 @@ do
158 esac
159 ;;
160 --stress-limit=*)
161 + stress=t;
162 stress_limit=${opt#--*=}
163 case "$stress_limit" in
164 *[!0-9]*|0*|"")