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

index 9e1b3f6e7cd1d8b744b55d8361bdbfbfa20e0349..22d4658bbbef24a903b36503867f4ad4b6c6c6dc 100755 (executable)
@@ -204,8 +204,8 @@ status=$((status + ret))
 n=$((n + 1))
 echo_i "checking static-stub of a undelegated tld resolves after DS query ($n)"
 ret=0
-$DIG $DIGOPTS undelegated. @10.53.0.2 ds >dig.out.ns2.ds.test$n
-$DIG $DIGOPTS undelegated. @10.53.0.2 soa >dig.out.ns2.soa.test$n
+$DIG $DIGOPTS undelegated. @10.53.0.2 ds >dig.out.ns2.ds.test$n || ret=1
+$DIG $DIGOPTS undelegated. @10.53.0.2 soa >dig.out.ns2.soa.test$n || ret=1
 grep "status: NXDOMAIN" dig.out.ns2.ds.test$n >/dev/null || ret=1
 grep "status: NOERROR" dig.out.ns2.soa.test$n >/dev/null || ret=1
 if [ $ret != 0 ]; then echo_i "failed"; fi