Commit 9d5d2c9d 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 2f694f0b)
parent dc680673
Pipeline #33099 canceled with stages
in 19 seconds
......@@ -3373,7 +3373,7 @@ echo send
$DIG $DIGOPTS +noall +answer @10.53.0.2 cds cds-update.secure > dig.out.test$n
lines=`awk '$4 == "CDS" {print}' dig.out.test$n | wc -l`
test "${lines:-10}" -eq 1 || ret=1
lines=`awk '$4 == "CDS" && $5 == "0" && $6 == "0" && $7 == "0" && $8 == "00" {print}' dig.out.test$n | wc -l`
lines=`tr -d '\r' < dig.out.test$n | awk '$4 == "CDS" && $5 == "0" && $6 == "0" && $7 == "0" && $8 == "00" {print}' | wc -l`
test "$lines" -eq 1 || ret=1
n=`expr $n + 1`
test "$ret" -eq 0 || echo_i "failed"
......@@ -3539,7 +3539,7 @@ echo send
$DIG $DIGOPTS +noall +answer @10.53.0.2 cdnskey cdnskey-update.secure > dig.out.test$n
lines=`awk '$4 == "CDNSKEY" {print}' dig.out.test$n | wc -l`
test "${lines:-10}" -eq 1 || ret=1
lines=`awk '$4 == "CDNSKEY" && $5 == "0" && $6 == "3" && $7 == "0" && $8 == "AA==" {print}' dig.out.test$n | wc -l`
lines=`tr -d '\r' < dig.out.test$n | awk '$4 == "CDNSKEY" && $5 == "0" && $6 == "3" && $7 == "0" && $8 == "AA==" {print}' | wc -l`
test "${lines:-10}" -eq 1 || ret=1
n=`expr $n + 1`
test "$ret" -eq 0 || echo_i "failed"
......
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