summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2019-03-03 14:44:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-03-04 03:25:22 (GMT)
commitde69e6f6c98e92f89b4fdbb91087e85f4af7afab (patch)
tree4545923d029e46e1062f24e78b24ace80bbc1062 /t
parent8104ec994ea3849a968b4667d072fedd1e688642 (diff)
downloadgit-de69e6f6c98e92f89b4fdbb91087e85f4af7afab.zip
git-de69e6f6c98e92f89b4fdbb91087e85f4af7afab.tar.gz
git-de69e6f6c98e92f89b4fdbb91087e85f4af7afab.tar.bz2
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 886bbec..48fd400 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 8665b0a..8553c1f 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*|"")