summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <johannes.schindelin@gmx.de>2019-03-03 06:44:54 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-03-04 12:25:22 +0900
commitde69e6f6c98e92f89b4fdbb91087e85f4af7afab (patch)
tree4545923d029e46e1062f24e78b24ace80bbc1062 /t
parentGit 2.21 (diff)
downloadtgif-de69e6f6c98e92f89b4fdbb91087e85f4af7afab.tar.xz
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>
Diffstat (limited to 't')
-rw-r--r--t/README2
-rw-r--r--t/test-lib.sh1
2 files changed, 2 insertions, 1 deletions
diff --git a/t/README b/t/README
index 886bbec5bc..48fd4009e1 100644
--- 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.
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 8665b0a9b6..8553c1ff87 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -158,6 +158,7 @@ do
esac
;;
--stress-limit=*)
+ stress=t;
stress_limit=${opt#--*=}
case "$stress_limit" in
*[!0-9]*|0*|"")