mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
Merge branch 'aram/tests-dighost-fix-intermittent-failure' into 'main'
Make digdelv test work in different network envs (continued) See merge request isc-projects/bind9!8636
This commit is contained in:
@@ -1055,7 +1055,7 @@ if [ -x "$DIG" ]; then
|
|||||||
echo_i "check that dig tries the next server after a TCP socket connection error/timeout ($n)"
|
echo_i "check that dig tries the next server after a TCP socket connection error/timeout ($n)"
|
||||||
ret=0
|
ret=0
|
||||||
dig_with_opts +tcp @10.53.0.99 @10.53.0.3 a.example >dig.out.test$n 2>&1 || ret=1
|
dig_with_opts +tcp @10.53.0.99 @10.53.0.3 a.example >dig.out.test$n 2>&1 || ret=1
|
||||||
test $(grep -F -e "connection refused" -e "timed out" -e "network unreachable" dig.out.test$n | wc -l) -eq 3 || ret=1
|
test $(grep -F -e "connection refused" -e "timed out" -e "network unreachable" -e "host unreachable" dig.out.test$n | wc -l) -eq 3 || ret=1
|
||||||
grep -F "status: NOERROR" dig.out.test$n >/dev/null || ret=1
|
grep -F "status: NOERROR" dig.out.test$n >/dev/null || ret=1
|
||||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||||
status=$((status + ret))
|
status=$((status + ret))
|
||||||
|
Reference in New Issue
Block a user