From de69e6f6c98e92f89b4fdbb91087e85f4af7afab Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Sun, 3 Mar 2019 06:44:54 -0800 Subject: tests: let --stress-limit= imply --stress It does not make much sense that running a test with --stress-limit= seemingly ignores that option because it does not stress test at all. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- t/README | 2 +- t/test-lib.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 't') 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=:: 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*|"") -- cgit v1.2.3