From: David Goulet Date: Mon, 5 Dec 2011 19:16:38 +0000 (-0500) Subject: Fix tests to output waiting time X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;ds=sidebyside;h=0bf4e1402bb82940004908d5d41a12b7fd308487;hp=-c;p=lttng-tools.git Fix tests to output waiting time Signed-off-by: David Goulet --- 0bf4e1402bb82940004908d5d41a12b7fd308487 diff --git a/benchmark/run-ust-notify.sh b/benchmark/run-ust-notify.sh index f326241fb..723ed2925 100755 --- a/benchmark/run-ust-notify.sh +++ b/benchmark/run-ust-notify.sh @@ -34,8 +34,18 @@ else echo "PID session daemon: $PID_SESSIOND" fi +# Session daemon need to boot up and run benchmark +echo -n "Waiting." +sleep 1 +echo -n "." +sleep 1 +echo "." +sleep 1 + kill $PID_SESSIOND wait $PID_SESSIOND +echo "Benchmarks done in $RESULTS_PATH" + exit 0 diff --git a/benchmark/run-ust-register.sh b/benchmark/run-ust-register.sh index 072fbde94..96d70a268 100755 --- a/benchmark/run-ust-register.sh +++ b/benchmark/run-ust-register.sh @@ -33,8 +33,13 @@ else echo "PID session daemon: $PID_SESSIOND" fi -# Wait for sessiond to settle -sleep 2 +# Session daemon need to boot up and run benchmark +echo -n "Waiting." +sleep 1 +echo -n "." +sleep 1 +echo "." +sleep 1 # Start libust instrumented application to register. UST_AUTOPROBE=1 UST_TRACE=1 ./$BASEDIR/hello @@ -43,4 +48,6 @@ kill $PID_SESSIOND wait $PID_SESSIOND +echo "Benchmarks done in $RESULTS_PATH" + exit 0