]> 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>
Mon, 8 Jan 2024 16:03:33 +0000 (17:03 +0100)
bin/tests/system/auth/tests.sh

index a1f5c735ae69a92afdbbea819381dfeeb471d5f6..2499b469508aa7e593cd2d55f3968d9c946a4bff 100644 (file)
@@ -180,7 +180,7 @@ status=$((status + ret))
 n=$((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"