From: Jonathan Rajotte Date: Tue, 8 Mar 2016 22:37:39 +0000 (-0500) Subject: Test: prevent the spawning of a daemonized sessiond X-Git-Tag: v2.8.0-rc1~99 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=fd7fe1a8c1960a83f49d1376cd69cf5972dcff3b;p=lttng-tools.git Test: prevent the spawning of a daemonized sessiond Sets the default lttng-sessiond path to /bin/true to prevent the spawning of a daemonized sessiond. This is necessary since 'lttng create' will spawn its own sessiond if none is running. It also ensures that 'lttng create' fails when no sessiond is running. Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/tests/utils/utils.sh b/tests/utils/utils.sh index da23f7abe..4ee3dda87 100644 --- a/tests/utils/utils.sh +++ b/tests/utils/utils.sh @@ -33,6 +33,12 @@ KERNEL_PATCHLEVEL_VERSION=27 # systems. Specialized tests should test those corner-cases. export LTTNG_UST_REGISTER_TIMEOUT=-1 +# We set the default lttng-sessiond path to /bin/true to prevent the spawning +# of a daemonized sessiond. This is necessary since 'lttng create' will spawn +# its own sessiond if none is running. It also ensures that 'lttng create' +# fails when no sessiond is running. +export LTTNG_SESSIOND_PATH="/bin/true" + source $TESTDIR/utils/tap/tap.sh function print_ok ()