Commit 25bd1071 authored by Michał Kępień's avatar Michał Kępień
Browse files

Use rndc_dumpdb() in the "rndc" system test

(cherry picked from commit 44344986)
parent 50f6c92a
......@@ -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
......
......@@ -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`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment