mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
[9.20] fix: test: "nextpart" piped to "grep -q" doesn't work as expected
`nextpart file | grep -q` doesn't work as expected. `grep -q` is not required to read all of the input and that causes `nextpart` to fail. Closes #5566 Backport of MR !11090 Merge branch 'backport-5566-nextpart-piped-to-grep-q-doesn-t-work-as-expected-9.20' into 'bind-9.20' See merge request isc-projects/bind9!11092
This commit is contained in:
commit
916f539602
2 changed files with 3 additions and 3 deletions
|
|
@ -243,7 +243,7 @@ $DIG $DIGOPTS test.nil. TXT @10.53.0.1 >dig.out.test$n.2 || ret=1
|
|||
grep -q -F "serial 4, fallback AXFR" dig.out.test$n.2 || ret=1
|
||||
|
||||
# Ensure the expected error is logged.
|
||||
nextpart ns1/named.run | grep -q -F "SOA name mismatch" || ret=1
|
||||
nextpart ns1/named.run | grep -F "SOA name mismatch" >/dev/null || ret=1
|
||||
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=$((status + ret))
|
||||
|
|
|
|||
|
|
@ -646,7 +646,7 @@ nxdomain a3-1.stub # 13
|
|||
nxdomain a3-1.static-stub # 14
|
||||
nochange_ns10 a3-1.stub-nomatch # 15
|
||||
nochange_ns10 a3-1.static-stub-nomatch # 16
|
||||
nextpart ns3/named.run | grep -q "unrecognized NS rpz_rrset_find() failed: glue" \
|
||||
nextpart ns3/named.run | grep -F "unrecognized NS rpz_rrset_find() failed: glue" >/dev/null \
|
||||
&& setret "seen: unrecognized NS rpz_rrset_find() failed: glue"
|
||||
end_group
|
||||
ckstats $ns3 test3 ns3 9
|
||||
|
|
@ -662,7 +662,7 @@ nxdomain a4-1.stub # 5
|
|||
nxdomain a4-1.static-stub # 6
|
||||
nochange_ns10 a4-1.stub-nomatch # 7
|
||||
nochange_ns10 a4-1.static-stub-nomatch # 8
|
||||
nextpart ns3/named.run | grep -q "unrecognized NS rpz_rrset_find() failed: glue" \
|
||||
nextpart ns3/named.run | grep -F "unrecognized NS rpz_rrset_find() failed: glue" >/dev/null \
|
||||
&& setret "seen: unrecognized NS rpz_rrset_find() failed: glue"
|
||||
end_group
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue