From: Mark Andrews Date: Tue, 11 Jun 2019 07:42:35 +0000 (+1000) Subject: wait for zones to load X-Git-Tag: v9.15.2~38^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b62e6418b568f6ac4fc1b8e2d2c2015410c4b763;p=thirdparty%2Fbind9.git wait for zones to load --- diff --git a/bin/tests/system/spf/tests.sh b/bin/tests/system/spf/tests.sh index f46f64361ec..dd54cf3766f 100644 --- a/bin/tests/system/spf/tests.sh +++ b/bin/tests/system/spf/tests.sh @@ -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