mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 17:14:28 +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:
parent
7ea40df4db
commit
decf115f7e
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue