]> 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 13:12:12 +0000 (15:12 +0200)
(cherry picked from commit 443449863b13bc4d757927e4e5244e417029be6c)

bin/tests/system/rndc/clean.sh
bin/tests/system/rndc/tests.sh

index 634248dea91a739f813934ab98f37bdf50c66e2f..a6ac33799151d1193a2f279b8bdec20b5ea9b943 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 b00056c663b9ba1210100b42be54c799d3d1045d..57e066d553f89d92a57fe6b18e9a3b3d988a3797 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`