]> 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>
Tue, 9 Jan 2024 12:43:26 +0000 (13:43 +0100)
(cherry picked from commit cc7c4760aa14348ffdf4b8e7c264fc18bed191f4)

bin/tests/system/staticstub/tests.sh

index 9b99f12920aaca15ddf8707ad9d3f5c4575ce75a..6ba8af286417af8f6da32aa3dd5fff091842ac41 100755 (executable)
@@ -203,8 +203,8 @@ status=$(expr $status + $ret)
 n=$(expr $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