Skip to content

Commit de69e6f

Browse files
dschogitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8104ec9 commit de69e6f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

t/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ appropriately before running "make".
214214
--stress-limit=<N>::
215215
When combined with --stress run the test script repeatedly
216216
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`.
218218

219219
You can also set the GIT_TEST_INSTALLED environment variable to
220220
the bindir of an existing git installation to test that installation.

t/test-lib.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ do
158158
esac
159159
;;
160160
--stress-limit=*)
161+
stress=t;
161162
stress_limit=${opt#--*=}
162163
case "$stress_limit" in
163164
*[!0-9]*|0*|"")

0 commit comments

Comments
 (0)