summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-09-27 12:00:40 +0200
committerMichael Adam <obnox@samba.org>2009-09-27 12:07:54 +0200
commit0539be08b46e04e39af08899bd1d942765ab4db4 (patch)
tree1a2f975ec6bcc6910a4a95b56d46c69181d451e9
parent79e994dd97453a69f024aab88b98d1f0881f3a3d (diff)
downloadtinyproxy-0539be08b46e04e39af08899bd1d942765ab4db4.tar.gz
tinyproxy-0539be08b46e04e39af08899bd1d942765ab4db4.zip
tests: fix infinite loop "waiting for 3 seconds..." in bash
Michael
Diffstat (limited to '')
-rwxr-xr-xtests/scripts/run_tests.sh4
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"
}