2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-28 21:07:43 +00:00

zdtm: Wait for test finish with increasing intervals

This makes tests that finish some time run smoother -- no tons of Waiting... messages
on the screen

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov 2012-07-11 07:57:23 +04:00
parent 7ea40df4db
commit decf115f7e

View File

@ -197,10 +197,12 @@ run_test()
echo Check results $PID
stop_test $tdir $tname
sltime=1
for i in `seq 50`; do
test -f $test.out && break
echo Waiting...
sleep 0.1
sleep 0.$sltime
[ $sltime -le 9 ] && ((sltime++))
done
cat $test.out
cat $test.out | grep PASS || return 2