]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Handle dig timing out gracefully in auth
authorTom Krizek <tkrizek@isc.org>
Fri, 5 Jan 2024 14:04:17 +0000 (15:04 +0100)
committerTom Krizek <tkrizek@isc.org>
Tue, 9 Jan 2024 12:43:23 +0000 (13:43 +0100)
(cherry picked from commit ddb41798d5227f65ae007b036a1341cc825118d1)

bin/tests/system/auth/tests.sh

index ee77923c37efa1054d9a19d8553cbf943dbd7ca0..293d0f86f404821f1b424610878fadd420bc1058 100644 (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"