Handle dig timing out gracefully in auth

(cherry picked from commit ddb41798d5)
This commit is contained in:
Tom Krizek
2024-01-05 15:04:17 +01:00
parent b9dbf29f48
commit 2b20812ce7

View File

@@ -179,7 +179,7 @@ status=$(expr $status + $ret)
n=$(expr $n + 1)
echo_i "check that CHAOS addresses are compared correctly ($n)"
ret=0
$DIG $DIGOPTS @10.53.0.1 +noall +answer ch test.example.chaos >dig.out.test$n
$DIG $DIGOPTS @10.53.0.1 +noall +answer ch test.example.chaos >dig.out.test$n || ret=1
lines=$(wc -l <dig.out.test$n)
[ ${lines:-0} -eq 2 ] || ret=1
[ $ret -eq 0 ] || echo_i "failed"