From 43f92611574c0a29313cd62e4d26266c693fb146 Mon Sep 17 00:00:00 2001 From: Tom Krizek Date: Fri, 5 Jan 2024 15:13:56 +0100 Subject: [PATCH] Handle dig timing out gracefully in staticstub (cherry picked from commit cc7c4760aa14348ffdf4b8e7c264fc18bed191f4) --- bin/tests/system/staticstub/tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/tests/system/staticstub/tests.sh b/bin/tests/system/staticstub/tests.sh index 9b99f12920..6ba8af2864 100755 --- a/bin/tests/system/staticstub/tests.sh +++ b/bin/tests/system/staticstub/tests.sh @@ -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