mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 06:39:59 -04:00
Fix "sending packet from" test
The specific address is not always available.
This commit is contained in:
parent
6ef16565b4
commit
4367106d2f
1 changed files with 6 additions and 6 deletions
|
|
@ -1832,8 +1832,8 @@ if [ -x "$DELV" ]; then
|
|||
echo_i "checking delv +ns uses both address families ($n)"
|
||||
ret=0
|
||||
delv_with_opts -a ns1/anchor.dnskey +root +ns +hint=root.hint a a.example >delv.out.test$n || ret=1
|
||||
grep -qF 'sending packet from 10.53' delv.out.test$n >/dev/null || ret=1
|
||||
grep -qF 'sending packet from fd92:7065' delv.out.test$n >/dev/null || ret=1
|
||||
grep -q 'sending packet from [0-9.]*#[0-9]* to' delv.out.test$n >/dev/null || ret=1
|
||||
grep -q 'sending packet from [0-9a-f:]*#[0-9]* to' delv.out.test$n >/dev/null || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status + ret))
|
||||
|
||||
|
|
@ -1841,8 +1841,8 @@ if [ -x "$DELV" ]; then
|
|||
echo_i "checking delv -4 +ns uses only IPv4 ($n)"
|
||||
ret=0
|
||||
delv_with_opts -a ns1/anchor.dnskey +root -4 +ns +hint=root.hint a a.example >delv.out.test$n || ret=1
|
||||
grep -qF 'sending packet from 10.53' delv.out.test$n >/dev/null || ret=1
|
||||
grep -qF 'sending packet from fd92:7065' delv.out.test$n >/dev/null && ret=1
|
||||
grep -q 'sending packet from [0-9.]*#[0-9]* to' delv.out.test$n >/dev/null || ret=1
|
||||
grep -q 'sending packet from [0-9a-f:]*#[0-9]* to' delv.out.test$n >/dev/null && ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status + ret))
|
||||
|
||||
|
|
@ -1850,8 +1850,8 @@ if [ -x "$DELV" ]; then
|
|||
echo_i "checking delv -6 +ns uses only IPv6 ($n)"
|
||||
ret=0
|
||||
delv_with_opts -a ns1/anchor.dnskey +root -6 +ns +hint=root.hint a a.example >delv.out.test$n || ret=1
|
||||
grep -qF 'sending packet from 10.53' delv.out.test$n >/dev/null && ret=1
|
||||
grep -qF 'sending packet from fd92:7065' delv.out.test$n >/dev/null || ret=1
|
||||
grep -q 'sending packet from [0-9.]*#[0-9]* to' delv.out.test$n >/dev/null && ret=1
|
||||
grep -q 'sending packet from [0-9a-f:]*#[0-9]* to' delv.out.test$n >/dev/null || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status + ret))
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue