From: Mathieu Desnoyers Date: Mon, 27 Jan 2014 03:16:47 +0000 (-0500) Subject: Fix: tests: start relayd in background mode (-b) X-Git-Tag: v2.5.0-rc1~238 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=6f137cef6cb86bf40f973d62f744536f91926ad3 Fix: tests: start relayd in background mode (-b) Ensure that relayd health check is ready to receive queries by starting relayd in background mode with '-b' rather than putting it in background by the shell (&). Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/utils/utils.sh b/tests/utils/utils.sh index 63b5eefed..6421af1b5 100644 --- a/tests/utils/utils.sh +++ b/tests/utils/utils.sh @@ -108,7 +108,7 @@ function start_lttng_relayd DIR=$(readlink -f $TESTDIR) if [ -z $(pidof lt-$RELAYD_BIN) ]; then - $DIR/../src/bin/lttng-relayd/$RELAYD_BIN $opt >/dev/null 2>&1 & + $DIR/../src/bin/lttng-relayd/$RELAYD_BIN -b $opt >/dev/null 2>&1 #$DIR/../src/bin/lttng-relayd/$RELAYD_BIN $opt -vvv >>/tmp/relayd.log 2>&1 & if [ $? -eq 1 ]; then fail "Start lttng-relayd (opt: $opt)"