From: David Goulet Date: Mon, 25 Nov 2013 16:33:59 +0000 (-0500) Subject: Tests: remove useless sleep when spawning sessiond X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=df442a141af71cd983f04a5d4d59002c82b0dacd;p=lttng-tools.git Tests: remove useless sleep when spawning sessiond The new daemonize scheme returns to the parent only when the session daemon is ready to operate thus the sleep that was used to wait for the session deamon to bootstrap is no longer needed. Signed-off-by: David Goulet --- diff --git a/tests/utils/utils.sh b/tests/utils/utils.sh index a09089afd..9e2c12d0b 100644 --- a/tests/utils/utils.sh +++ b/tests/utils/utils.sh @@ -156,11 +156,9 @@ function start_lttng_sessiond() DIR=$(readlink -f $TESTDIR) if [ -z $(pidof lt-$SESSIOND_BIN) ]; then - $DIR/../src/bin/lttng-sessiond/$SESSIOND_BIN --daemonize --quiet --consumerd32-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd" --consumerd64-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd" + $DIR/../src/bin/lttng-sessiond/$SESSIOND_BIN --daemonize --consumerd32-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd" --consumerd64-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd" #$DIR/../src/bin/lttng-sessiond/$SESSIOND_BIN --consumerd32-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd" --consumerd64-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd" --verbose-consumer >>/tmp/sessiond.log 2>&1 & status=$? - # Wait for sessiond to bootstrap - sleep 2 ok $status "Start session daemon" fi }