]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
wait for root server to complete reloading
authorMark Andrews <marka@isc.org>
Tue, 14 Jan 2020 06:08:25 +0000 (17:08 +1100)
committerMark Andrews <marka@isc.org>
Fri, 7 Feb 2020 14:14:18 +0000 (14:14 +0000)
(cherry picked from commit 784e64f238482e4e58ea57ebe84e0e7c96680130)

bin/tests/system/dnssec/tests.sh

index dc07c3daf4b97612eff755c5b47e37fffccb1b4c..62c7c393b5328d707c8857894da2ee03a3835b6a 100644 (file)
@@ -3699,11 +3699,19 @@ $DIG $DIGOPTS . dnskey +ednsopt=KEY-TAG:fffe +ednsopt=KEY-TAG:fffd @10.53.0.1 >
 grep "trust-anchor-telemetry './IN' from .* 65534" ns1/named.run > /dev/null || ret=1
 grep "trust-anchor-telemetry './IN' from .* 65533" ns1/named.run > /dev/null && ret=1
 $PERL $SYSTEMTESTTOP/stop.pl dnssec ns1 || ret=1
+nextpart ns1/named.run > /dev/null
 $PERL $SYSTEMTESTTOP/start.pl --noclean --restart --port ${PORT} dnssec ns1 || ret=1
 n=`expr $n + 1`
 test "$ret" -eq 0 || echo_i "failed"
 status=`expr $status + $ret`
 
+echo_i "waiting for root server to finish reloading ($n)"
+ret=0
+wait_for_log "all zones loaded" ns1/named.run || ret=1
+n=`expr $n + 1`
+test "$ret" -eq 0 || echo_i "failed"
+status=`expr $status + $ret`
+
 echo_i "check that DNAME at apex with NSEC3 is correctly signed (dnssec-signzone) ($n)"
 ret=0
 $DIG $DIGOPTS txt dname-at-apex-nsec3.example @10.53.0.3 > dig.out.ns3.test$n || ret=1