mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
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.
This commit is contained in:
parent
aac8736998
commit
451484b870
1 changed files with 2 additions and 1 deletions
|
|
@ -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 $?
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue