2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-06 01:25:44 +00:00

Merge branch 'michal/fix-the-dnssec-system-test-on-windows' into 'master'

Fix the "dnssec" system test on Windows

See merge request isc-projects/bind9!2902
This commit is contained in:
Michał Kępień
2020-01-16 08:49:13 +00:00

View File

@@ -108,11 +108,12 @@ stripns () {
# Ensure there is not a blank line before "Secure roots:". # Ensure there is not a blank line before "Secure roots:".
# #
check_secroots_layout () { check_secroots_layout () {
tr -d '\r' < "$1" | \
awk '$0 == "" { if (empty) exit(1); empty=1; next } awk '$0 == "" { if (empty) exit(1); empty=1; next }
/Start view/ { if (!empty) exit(1) } /Start view/ { if (!empty) exit(1) }
/Secure roots:/ { if (empty) exit(1) } /Secure roots:/ { if (empty) exit(1) }
/Negative trust anchors:/ { if (!empty) exit(1) } /Negative trust anchors:/ { if (!empty) exit(1) }
{ empty=0 }' $1 { empty=0 }'
return $? return $?
} }