tests: fix infinite loop "waiting for 3 seconds..." in bash

Michael
This commit is contained in:
Michael Adam 2009-09-27 12:00:40 +02:00
parent 79e994dd97
commit 0539be08b4

View File

@ -144,11 +144,9 @@ wait_for_some_seconds() {
echo -n "waiting for $SECONDS seconds."
COUNT=0
while test $COUNT -lt $SECONDS ; do
for COUNT in $(seq 1 $SECONDS) ; do
sleep 1
echo -n "."
COUNT=$(($COUNT + 1))
done
echo " done"
}