From decf115f7ea534cd13cb98ab05f71bb36320b59c Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Wed, 11 Jul 2012 07:57:23 +0400 Subject: [PATCH] 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 --- test/zdtm.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/zdtm.sh b/test/zdtm.sh index ce9c75e2e..2da8fc580 100644 --- a/test/zdtm.sh +++ b/test/zdtm.sh @@ -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