From: Aki Tuomi Date: Fri, 14 Jun 2013 12:20:47 +0000 (+0300) Subject: Fixed correct comparator X-Git-Tag: rec-3.6.0-rc1~651^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F865%2Fhead;p=thirdparty%2Fpdns.git Fixed correct comparator --- diff --git a/regression-tests.nobackend/edns-packet-cache/command b/regression-tests.nobackend/edns-packet-cache/command index 1b266f5b54..cc3363eca4 100755 --- a/regression-tests.nobackend/edns-packet-cache/command +++ b/regression-tests.nobackend/edns-packet-cache/command @@ -5,7 +5,7 @@ bindwait () configname=$1 domcount=1 loopcount=0 - while [ $loopcount < 20 ]; do + while [ $loopcount -lt 20 ]; do sleep 1 done=$( (../pdns/pdns_control --config-name=$configname --socket-dir=. --no-config bind-domain-status || true) | grep -c 'parsed into memory' || true ) if [ $done = $domcount ] diff --git a/regression-tests/start-test-stop b/regression-tests/start-test-stop index 944f08aad7..6f62d459b0 100755 --- a/regression-tests/start-test-stop +++ b/regression-tests/start-test-stop @@ -21,7 +21,7 @@ bindwait () fi loopcount=0 - while [ $loopcount < 20 ]; do + while [ $loopcount -lt 20 ]; do sleep 10 done=$( (../pdns/pdns_control --config-name=$configname --socket-dir=. --no-config bind-domain-status || true) | grep -c 'parsed into memory' || true ) if [ $done = $domcount ]; then @@ -639,7 +639,7 @@ then --config-name=gmysql2 |& egrep -v "update records set ordername|insert into records" & echo 'waiting for zones to be slaved' loopcount=0 - while [ $loopcount < 20 ] + while [ $loopcount -lt 20 ] do sleep 10 todo=$(mysql --user="$GMYSQL2USER" --password="$GMYSQL2PASSWD" --host="$GMYSQl2HOST" \ @@ -650,7 +650,7 @@ then fi let loopcount=loopcount+1 done - if [ $todo != 0 ]; then + if [ $todo -ne 0 ]; then echo "AXFR FAILED" >> failed_tests fi elif [ ${context:0:8} = gsqlite3 ] @@ -675,7 +675,7 @@ then echo 'waiting for zones to be slaved' set +e loopcount=0 - while [ $loopcount < 20 ] + while [ $loopcount -lt 20 ] do sleep 10 todo=$(sqlite3 pdns.sqlite31 'SELECT COUNT(id) FROM domains WHERE last_check IS NULL') @@ -688,7 +688,7 @@ then fi let loopcount=loopcount+1 done - if [ $todo != 0 ]; then + if [ $todo -ne 0 ]; then echo "AXFR FAILED" >> failed_tests fi set -e