]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
wait longer for dump to complete
authorMark Andrews <marka@isc.org>
Mon, 7 Jan 2019 04:18:46 +0000 (15:18 +1100)
committerEvan Hunt <each@isc.org>
Wed, 9 Jan 2019 04:18:26 +0000 (20:18 -0800)
(cherry picked from commit 8a8d378deff2b8e38ca3213b92f7d3558c5b2066)

bin/tests/system/cookie/tests.sh

index 7708a59ce853dae76df949354ca99290d8cb4244..b6eab361853ea9ac13bf3609d08df72dcd507423 100755 (executable)
@@ -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`