Test: prevent the spawning of a daemonized sessiond
PATCH v2 1/1 Test: prevent the spawning of a daemonized sessiond
In reply to a message not in the archiveSets 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 make sure that 'lttng create' fails when no sessiond is running.
Signed-off-by Jonathan Rajotte <[email protected]>
--- tests/utils/utils.sh | 6 ++++++ 1 file changed, 6 insertions(+)
tests/utils/utils.sh +6 -0
@@ -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 make sure that 'lttng create' +# fails when no sessiond is running. +export LTTNG_SESSIOND_PATH="/bin/true" + source $TESTDIR/utils/tap/tap.sh function print_ok ()
Signature · 1 line
2.7.0
Merged in master, stable-2.7 and stable-2.6. Thanks!
Jérémie
Quoted 30 lines · Jonathan Rajotte
Sets the default lttng-sessiond path to
/bin/trueto prevent the spawning of a daemonized sessiond. This is necessary since 'lttng create' will spawn its own sessiond if none is running. It also make sure that 'lttng create' fails when no sessiond is running.Signed-off-by Jonathan Rajotte <[email protected]>--- tests/utils/utils.sh | 6 ++++++ 1 file changed, 6 insertions(+)tests/utils/utils.sh +6
-1@@ -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 make sure that 'lttng create' +# fails when no sessiond is running. +export LTTNG_SESSIOND_PATH="/bin/true" + source $TESTDIR/utils/tap/tap.sh function print_ok () --2.7.0
Signature · 7 lines
Jérémie Galarneau EfficiOS Inc. http://www.efficios.com _______________________________________________ lttng-dev mailing list [email protected] https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev