Browse Source

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>
maint
Johannes Schindelin 6 years ago committed by Junio C Hamano
parent
commit
de69e6f6c9
  1. 2
      t/README
  2. 1
      t/test-lib.sh

2
t/README

@ -214,7 +214,7 @@ appropriately before running "make". @@ -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.

1
t/test-lib.sh

@ -158,6 +158,7 @@ do @@ -158,6 +158,7 @@ do
esac
;;
--stress-limit=*)
stress=t;
stress_limit=${opt#--*=}
case "$stress_limit" in
*[!0-9]*|0*|"")

Loading…
Cancel
Save