Commit df553964 authored by Pavel Emelyanov's avatar Pavel Emelyanov

zdtm: Fix sleep time unwanted overflow

After sleep 0.9 there occurs sleep 0.10 which is not what
we want. Stop incrementing on 0.9
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 3d3e312b
...@@ -287,7 +287,7 @@ EOF ...@@ -287,7 +287,7 @@ EOF
test -f $test.out && break test -f $test.out && break
echo Waiting... echo Waiting...
sleep 0.$sltime sleep 0.$sltime
[ $sltime -le 9 ] && sltime=$((sltime+1)) [ $sltime -lt 9 ] && sltime=$((sltime+1))
done done
cat $test.out cat $test.out
cat $test.out | grep PASS || return 2 cat $test.out | grep PASS || return 2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment