]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use rndc_dumpdb() in the "dnssec" 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 44c0cc881f6ab290a890e2581112842abf901f53)

bin/tests/system/dnssec/clean.sh
bin/tests/system/dnssec/tests.sh

index c49ee9a1ac7551637b171257d082d2e71fafc66e..bee3bbfd62f129fa33b69bad678559ed2c63e228 100644 (file)
@@ -92,7 +92,7 @@ rm -f ./ns3/ttlpatch.example.db ./ns3/ttlpatch.example.db.signed
 rm -f ./ns3/ttlpatch.example.db.patched
 rm -f ./ns3/unsecure.example.db ./ns3/bogus.example.db ./ns3/keyless.example.db
 rm -f ./ns4/managed-keys.bind*
-rm -f ./ns4/named_dump.db
+rm -f ./ns4/named_dump.db*
 rm -f ./ns6/optout-tld.db
 rm -f ./ns7/multiple.example.bk ./ns7/nsec3.example.bk ./ns7/optout.example.bk
 rm -f ./ns7/split-rrsig.db ./ns7/split-rrsig.db.unsplit
index 7cf27a9c53229f4206f9a61dae3012df19fee099..b31c1b4e43f6897dc0694144ec013cd5e2e6de71 100644 (file)
@@ -3094,9 +3094,8 @@ status=`expr $status + $ret`
 
 echo_i "check that key id are logged when dumping the cache ($n)"
 ret=0
-$RNDCCMD 10.53.0.4 dumpdb 2>&1 | sed 's/^/ns4 /' | cat_i
-sleep 1
-grep "; key id = " ns4/named_dump.db > /dev/null || ret=1
+rndc_dumpdb ns4
+grep "; key id = " ns4/named_dump.db.test$n > /dev/null || ret=1
 n=`expr $n + 1`
 if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`