X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=tests%2Futils.sh;h=0d5b13e79445642babb996392e60b78610de81fd;hb=8cf66a2b6551d770a8aedf1301bcec2270041785;hp=55bc9e9d5a41adf559840f41a0bab677c25894db;hpb=317eef9339f8620bf3d99972ba2a9196a36060db;p=lttng-tools.git diff --git a/tests/utils.sh b/tests/utils.sh index 55bc9e9d5..0d5b13e79 100644 --- a/tests/utils.sh +++ b/tests/utils.sh @@ -72,6 +72,11 @@ function stop_sessiond () echo -e "\e[1;31mFAILED\e[0m" return 1 else + out=1 + while [ -n "$out" ]; do + out=$(pidof lt-$SESSIOND_BIN) + sleep 0.5 + done echo -e "\e[1;32mOK\e[0m" fi }