From: Tom Krizek Date: Fri, 5 Jan 2024 14:06:17 +0000 (+0100) Subject: Handle dig timing out gracefully in dnstap X-Git-Tag: v9.19.22~94^2~13 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=fcce010045640d1d183e14b8fdcacccc79eae256;p=thirdparty%2Fbind9.git Handle dig timing out gracefully in dnstap --- diff --git a/bin/tests/system/dnstap/tests.sh b/bin/tests/system/dnstap/tests.sh index ac40a38e452..261384fd1f2 100644 --- a/bin/tests/system/dnstap/tests.sh +++ b/bin/tests/system/dnstap/tests.sh @@ -573,7 +573,7 @@ if [ $ret != 0 ]; then echo_i "failed"; fi status=$((status + ret)) if [ -n "$FSTRM_CAPTURE" ]; then - $DIG $DIGOPTS @10.53.0.4 a.example >dig.out + $DIG $DIGOPTS @10.53.0.4 a.example >dig.out || ret=1 # send an UPDATE to ns4 $NSUPDATE <<-EOF >nsupdate.out 2>&1 && ret=1 @@ -704,7 +704,7 @@ EOF ret=1 } $RNDCCMD -s 10.53.0.4 dnstap -reopen | sed 's/^/ns4 /' | cat_i - $DIG $DIGOPTS @10.53.0.4 a.example >dig.out + $DIG $DIGOPTS @10.53.0.4 a.example >dig.out || ret=1 echo_i "checking reopened unix socket message counts" sleep 2