]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use rndc_dumpdb() in the "rndc" system test
authorMichał Kępień <michal@isc.org>
Thu, 8 Aug 2019 12:27:55 +0000 (14:27 +0200)
committerMichał Kępień <michal@isc.org>
Thu, 8 Aug 2019 12:27:55 +0000 (14:27 +0200)
bin/tests/system/rndc/clean.sh
bin/tests/system/rndc/tests.sh

index 3472273c271f879b6044850fcb38897c867a2c86..ddab2df8fe6d9076ecf79087eeb6829516b55512 100644 (file)
@@ -16,7 +16,7 @@ rm -f ns*/named.run ns*/named.run.prev
 rm -f ns2/named.stats
 rm -f ns2/nil.db ns2/other.db ns2/static.db ns2/*.jnl
 rm -f ns2/session.key
-rm -f ns3/named_dump.db
+rm -f ns3/named_dump.db*
 rm -f ns4/*.nta
 rm -f ns4/key?.conf
 rm -f ns6/huge.zone.db
index 3718e143182d247c45a5302924e6ed23d9e82d0e..2af855aa2820b23c99b3c60dc80a3e18ca4f2533 100644 (file)
@@ -314,15 +314,7 @@ status=`expr $status + $ret`
 n=`expr $n + 1`
 echo_i "test 'rndc dumpdb' on a empty cache ($n)"
 ret=0
-$RNDCCMD 10.53.0.3 dumpdb > /dev/null || ret=1
-for i in 1 2 3 4 5 6 7 8 9
-do
-       tmp=0
-       grep "Dump complete" ns3/named_dump.db > /dev/null || tmp=1
-       [ $tmp -eq 0 ] && break
-       sleep 1
-done
-[ $tmp -eq 1 ] && ret=1
+rndc_dumpdb ns3 || ret=1
 if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`