From 0539be08b46e04e39af08899bd1d942765ab4db4 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sun, 27 Sep 2009 12:00:40 +0200 Subject: tests: fix infinite loop "waiting for 3 seconds..." in bash Michael --- tests/scripts/run_tests.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/scripts/run_tests.sh b/tests/scripts/run_tests.sh index 077d7a8..cd67bfb 100755 --- a/tests/scripts/run_tests.sh +++ b/tests/scripts/run_tests.sh @@ -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" } -- cgit v1.2.3