Fix: tests: wait for consumerd to complete
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 27 Jan 2014 03:15:56 +0000 (22:15 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 28 Jan 2014 21:20:45 +0000 (16:20 -0500)
Wait for consumerd to complete when stopping sessiond.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/utils/utils.sh

index 968a6e61305ac92d1d633856027130f712584a5a..c433d6c7223077cdd16051a710de7f26d5e8a463 100644 (file)
@@ -16,6 +16,7 @@
 # 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
 
 SESSIOND_BIN="lttng-sessiond"
+CONSUMERD_BIN="lttng-consumerd"
 RELAYD_BIN="lttng-relayd"
 LTTNG_BIN="lttng"
 BABELTRACE_BIN="babeltrace"
@@ -183,6 +184,11 @@ function stop_lttng_sessiond ()
                        out=$(pidof lt-$SESSIOND_BIN)
                        sleep 0.5
                done
+               out=1
+               while [ -n "$out" ]; do
+                       out=$(pidof $CONSUMERD_BIN)
+                       sleep 0.5
+               done
                pass "Kill session daemon"
        fi
 }
This page took 0.02758 seconds and 4 git commands to generate.