2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Use rndc_dumpdb() in the "rndc" system test

This commit is contained in:
Michał Kępień
2019-08-08 14:27:55 +02:00
parent 44c0cc881f
commit 443449863b
2 changed files with 2 additions and 10 deletions

View 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

View 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`