X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Futils.sh;h=0f4affd99145165bb21006416cc7aeb8a5367af9;hb=5fa325800d52b417e45b98cc659d3360c4f6c9d5;hp=2d8b46a834b72f6e393cdb89406602f098ff5ad2;hpb=bff9a49f4397f5f38aac4e1c0fa14b391a84bc7b;p=lttng-tools.git diff --git a/tests/utils.sh b/tests/utils.sh index 2d8b46a83..0f4affd99 100644 --- a/tests/utils.sh +++ b/tests/utils.sh @@ -101,6 +101,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 }