Test: prevent the spawning of a daemonized sessiond
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH v2 1/1 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 make sure that 'lttng create' fails when no sessiond is running.
--- 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
A message that is not in the archive (sent off-list or not yet received): 1457476659-19530-1-git-send-email-jonathan.rajotte-julien@efficios.com
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