]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Store dupsigs axfr to a file for easier debugging
authorTom Krizek <tkrizek@isc.org>
Tue, 14 Mar 2023 09:33:47 +0000 (10:33 +0100)
committerTom Krizek <tkrizek@isc.org>
Wed, 22 Mar 2023 13:26:10 +0000 (14:26 +0100)
(cherry picked from commit fad2eee631149d26f78b9d39adb3329deb0ed9c8)

bin/tests/system/dupsigs/tests.sh

index 25785a8dac51ce74ba0de14af241a5b42d2ad8c6..dadb2477ac3501a43cbccc91e31dad00a04263d7 100644 (file)
@@ -26,10 +26,10 @@ status=0
 #
 # for a total of 1009.
 fully_signed () {
-        $DIG axfr signing.test -p ${PORT} @10.53.0.1 |
-                awk 'BEGIN { lines = 0 }
-                     $4 == "RRSIG" {lines++}
-                     END { if (lines != 1009) exit(1) }'
+        $DIG axfr signing.test -p ${PORT} @10.53.0.1 > "dig.out.ns1.axfr"
+        awk 'BEGIN { lines = 0 }
+             $4 == "RRSIG" {lines++}
+             END { if (lines != 1009) exit(1) }' < "dig.out.ns1.axfr"
 }
 retry_quiet 30 fully_signed || ret=1