Skip to contentSkip to conversation

Test: prevent the spawning of a daemonized sessiond

PATCH New Jonathan Rajotte 2 participants 2 messages Mar 8, 2016 – Mar 10, 2016 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

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
index da23f7a..0d5c33e 100644
@@ -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

#3 lore raw

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/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 -1
index da23f7a..0d5c33e 100644
@@ -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