]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
wait for post 'rndc freeze' writes to complete
authorMark Andrews <marka@isc.org>
Wed, 25 Aug 2021 03:01:17 +0000 (13:01 +1000)
committerMark Andrews <marka@isc.org>
Thu, 26 Aug 2021 00:57:08 +0000 (10:57 +1000)
bin/tests/system/rndc/tests.sh

index 5d260e24ac69efc2426bf9144b72f804bd51462d..df3ef3afc797319eaa4275bf73f5cbc2849e950f 100644 (file)
@@ -769,15 +769,17 @@ grep 'addition 1' dig.out.1.test$n >/dev/null || ret=1
 if [ $ret != 0 ]; then echo_i "failed"; fi
 status=$((status+ret))
 
+nextpart ns7/named.run > /dev/null
+
 echo_i "rndc freeze"
 $RNDCCMD 10.53.0.7 freeze | sed 's/^/ns7 /' | cat_i | cat_i
 
+wait_for_log 3 "dump_done: zone test/IN/internal: enter" ns7/named.run
+
 echo_i "edit zone files"
 cp ns7/test.db.in ns7/test.db
 cp ns7/include2.db.in ns7/include.db
 
-nextpart ns7/named.run > /dev/null
-
 echo_i "rndc thaw"
 $RNDCCMD 10.53.0.7 thaw | sed 's/^/ns7 /' | cat_i