]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
wait for zones to load
authorMark Andrews <marka@isc.org>
Tue, 11 Jun 2019 07:42:35 +0000 (17:42 +1000)
committerMark Andrews <marka@isc.org>
Mon, 24 Jun 2019 04:19:05 +0000 (14:19 +1000)
(cherry picked from commit b62e6418b568f6ac4fc1b8e2d2c2015410c4b763)

bin/tests/system/spf/tests.sh

index f46f64361ecd128cc08c1f83c4c59641daf4adb8..dd54cf3766fbe9046df948daf2e1c0dcbf7ffb21 100644 (file)
@@ -15,6 +15,13 @@ SYSTEMTESTTOP=..
 n=1
 status=0
 
+# Wait until all zones are loaded before checking SPF related logs
+for i in 1 2 3 4 5 6 7 8 9 10
+do
+       grep "all zones loaded" ns1/named.run > /dev/null && break
+       sleep 1
+done
+
 echo_i "checking that SPF warnings have been correctly generated ($n)"
 ret=0