mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
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: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user