From: Mathieu Desnoyers Date: Tue, 28 Apr 2015 14:16:37 +0000 (-0400) Subject: Fix: set UST register timeout to -1 as test default X-Git-Tag: v2.5.5~24 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4074c1df98dd9d8dbe39c13a8791e459db09b5db;p=lttng-tools.git Fix: set UST register timeout to -1 as test default On busy systems, it's possible to spuriously hit the default 3 seconds timeout for UST registration to sessiond, thus causing tests to be flaky on those systems. Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- diff --git a/tests/utils/utils.sh b/tests/utils/utils.sh index 6f1b90236..49a24e359 100644 --- a/tests/utils/utils.sh +++ b/tests/utils/utils.sh @@ -26,6 +26,11 @@ KERNEL_MAJOR_VERSION=2 KERNEL_MINOR_VERSION=6 KERNEL_PATCHLEVEL_VERSION=27 +# We set the default UST register timeout to "wait forever", so that +# basic tests don't have to worry about hitting timeouts on busy +# systems. Specialized tests should test those corner-cases. +export LTTNG_UST_REGISTER_TIMEOUT=-1 + source $TESTDIR/utils/tap/tap.sh function print_ok ()