fixup! test-lib: add the '--stress' option to run a test repeatedly under load
diff mbox series

Message ID 20181210013408.25577-1-szeder.dev@gmail.com
State New
Headers show
Series
  • fixup! test-lib: add the '--stress' option to run a test repeatedly under load
Related show

Commit Message

SZEDER Gábor Dec. 10, 2018, 1:34 a.m. UTC
---

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(-)

Patch
diff mbox series

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