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