Commit a4f6af58 authored by Michał Kępień's avatar Michał Kępień

Fix the "dnssec" system test on Windows

Make sure carriage return characters are stripped from awk input to
enable the "dnssec" system test to pass on Windows.

(cherry picked from commit 451484b8)
parent 71bc5cc6
Pipeline #30915 canceled with stages
in 17 seconds
......@@ -100,11 +100,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 $?
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment