From: SZEDER Gábor Date: Mon, 10 Dec 2018 01:34:08 GMT Subject: [PATCH] fixup! test-lib: add the '--stress' option to run a test repeatedly under load Message-ID: <20181210013408.25577-1-szeder.dev@gmail.com> In-Reply-To: <20181209225628.22216-8-szeder.dev@gmail.com> --- Erm. 'trace=t' must be set before checking whether the shell supports BASH_XTRACEFD. t/test-lib.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/t/test-lib.sh b/t/test-lib.sh index e405191164..3e9916b39b 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -446,6 +446,13 @@ then test -z "$verbose_log" && verbose=t fi +if test -n "$stress" +then + verbose=t + trace=t + immediate=t +fi + if test -n "$trace" && test -n "$test_untraceable" then # '-x' tracing requested, but this test script can't be reliably @@ -469,13 +476,6 @@ then verbose=t fi -if test -n "$stress" -then - verbose=t - trace=t - immediate=t -fi - if test -n "$color" then # Save the color control sequences now rather than run tput -- 2.20.0.rc2.156.g5a9fd2ce9c