diff options
author | Michael Adam <obnox@samba.org> | 2009-09-27 12:00:40 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-09-27 12:07:54 +0200 |
commit | 0539be08b46e04e39af08899bd1d942765ab4db4 (patch) | |
tree | 1a2f975ec6bcc6910a4a95b56d46c69181d451e9 /tests/scripts/run_tests.sh | |
parent | 79e994dd97453a69f024aab88b98d1f0881f3a3d (diff) |
tests: fix infinite loop "waiting for 3 seconds..." in bash
Michael
Diffstat (limited to 'tests/scripts/run_tests.sh')
-rwxr-xr-x | tests/scripts/run_tests.sh | 4 |
1 files changed, 1 insertions, 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" } |