Wait for all apps in high-throughput test
[lttng-tools.git] / tests / ust / high-throughput / run
index 05f8e85eab4c9f1be5effb6d8ab408b2f68ae2c8..de3111ddde8b95540600cb796e43fd2ef8a18fa2 100755 (executable)
@@ -48,9 +48,12 @@ for i in `seq 1 $NR_ITER`; do
        ./$CURDIR/$BIN_NAME & >/dev/null 2>&1
 done
 
-echo "Waiting for all tracing to settle (7 secs)"
-echo "Warning: this arbitrary time can make the test fail on slower system"
-sleep 7
+echo "Waiting for applications to end"
+while [ -n "$(pidof $BIN_NAME)" ]; do
+       echo -n "."
+       sleep 0.5
+done
+echo ""
 
 stop_tracing $SESSION_NAME
 destroy_lttng_session $SESSION_NAME
This page took 0.023497 seconds and 4 git commands to generate.