Re: [PATCH 1/2] tests: let --stress-limit=<N> imply --stress
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 3, 2019, 09:54 UTC
- Message-ID
- <xmqqo96s1dvw.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <16c6508c4b38933945126ffe27445c999aa3e59e.1551561582.git.gitgitgadget@gmail.com>
"Johannes Schindelin via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 21 quoted lines
> From: Johannes Schindelin <johannes.schindelin@gmx.de>
>
> 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>
> ---
> t/test-lib.sh | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/t/test-lib.sh b/t/test-lib.sh
> index 4e7cb52b57..ab7f27ec6a 100644
> --- a/t/test-lib.sh
> +++ b/t/test-lib.sh
> @@ -153,6 +153,7 @@ do
> esac
> ;;
> --stress-limit=*)
> + stress=t;
> stress_limit=${opt#--*=}Good thinking.
> case "$stress_limit" in > *[!0-9]*|0*|"")