From: Mark Andrews Date: Mon, 7 Jan 2019 04:18:46 +0000 (+1100) Subject: wait longer for dump to complete X-Git-Tag: v9.12.4rc1~67^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=675d75e0bc2f3af2aed5e3bd96449fc10db3a2d0;p=thirdparty%2Fbind9.git wait longer for dump to complete (cherry picked from commit 8a8d378deff2b8e38ca3213b92f7d3558c5b2066) --- diff --git a/bin/tests/system/cookie/tests.sh b/bin/tests/system/cookie/tests.sh index 7708a59ce85..b6eab361853 100755 --- a/bin/tests/system/cookie/tests.sh +++ b/bin/tests/system/cookie/tests.sh @@ -142,8 +142,12 @@ n=`expr $n + 1` echo_i "checking for COOKIE value in adb ($n)" ret=0 $RNDCCMD 10.53.0.1 dumpdb -sleep 1 -grep "10.53.0.2.*\[cookie=" ns1/named_dump.db > /dev/null|| ret=1 +for i in 1 2 3 4 5 6 7 8 9 10 +do + sleep 1 + grep "10.53.0.2.*\[cookie=" ns1/named_dump.db > /dev/null && break +done +grep "10.53.0.2.*\[cookie=" ns1/named_dump.db > /dev/null || ret=1 if [ $ret != 0 ]; then echo_i "failed"; fi status=`expr $status + $ret`