From 6f137cef6cb86bf40f973d62f744536f91926ad3 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sun, 26 Jan 2014 22:16:47 -0500 Subject: [PATCH] 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 --- tests/utils/utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)" -- 2.34.1