]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Handle dig timing out gracefully in rootkeysentinel
authorTom Krizek <tkrizek@isc.org>
Fri, 5 Jan 2024 14:12:30 +0000 (15:12 +0100)
committerTom Krizek <tkrizek@isc.org>
Mon, 8 Jan 2024 16:03:36 +0000 (17:03 +0100)
bin/tests/system/rootkeysentinel/tests.sh

index 3e0a487a9c519eca3dc1c2e5a0d81e164e82435a..e550cf3aee74238e0f9dc00ae5c9733c9f5f93b6 100644 (file)
@@ -49,13 +49,13 @@ if [ $ret != 0 ]; then echo_i "failed"; fi
 status=$((status + ret))
 
 newtest "check authoritative server (expect NOERROR)"
-$DIG $DIGOPTS @10.53.0.2 example SOA >dig.out.ns2.test$n
+$DIG $DIGOPTS @10.53.0.2 example SOA >dig.out.ns2.test$n || ret=1
 grep "status: NOERROR" dig.out.ns2.test$n >/dev/null || ret=1
 if [ $ret != 0 ]; then echo_i "failed"; fi
 status=$((status + ret))
 
 newtest "check test zone resolves with 'root-key-sentinel yes;'" " (expect NOERROR)"
-$DIG $DIGOPTS @10.53.0.3 example SOA >dig.out.ns3.test$n
+$DIG $DIGOPTS @10.53.0.3 example SOA >dig.out.ns3.test$n || ret=1
 grep "status: NOERROR" dig.out.ns3.test$n >/dev/null || ret=1
 if [ $ret != 0 ]; then echo_i "failed"; fi
 status=$((status + ret))