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
On Windows, the bin/tests/system/dnssec/signer/example.db.signed file
contains carriage return characters at the end of each line. Remove
them before passing the aforementioned file to the awk script extracting
key IDs so that the latter can work properly.
(cherry picked from commit e4280ed9f5)
This commit is contained in:
parent
d9688b58c8
commit
4f992ab35f
1 changed files with 3 additions and 1 deletions
|
|
@ -1402,6 +1402,7 @@ if [ $ret != 0 ]; then echo_i "failed"; fi
|
|||
status=`expr $status + $ret`
|
||||
|
||||
get_rsasha1_key_ids_from_sigs() {
|
||||
tr -d '\r' < signer/example.db.signed | \
|
||||
awk '
|
||||
NF < 8 { next }
|
||||
$(NF-5) != "RRSIG" { next }
|
||||
|
|
@ -1411,7 +1412,8 @@ get_rsasha1_key_ids_from_sigs() {
|
|||
getline;
|
||||
print $3;
|
||||
}
|
||||
' signer/example.db.signed | sort -u
|
||||
' | \
|
||||
sort -u
|
||||
}
|
||||
|
||||
echo_i "checking that a key using an unsupported algorithm cannot be generated ($n)"
|
||||
|
|
|
|||
Loading…
Reference in a new issue