]> 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 12:27:55 +0000 (14:27 +0200)
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 a871bb7975313f7822c5ca487449fa8f004d2f50..243b0a6426bf0e1309b43c8703043d99570a6221 100644 (file)
@@ -3098,9 +3098,8 @@ status=$((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=$((n+1))
 test "$ret" -eq 0 || echo_i "failed"
 status=$((status+ret))