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

index ac40a38e4522b44d571c2e8862c095e6356ada8b..261384fd1f2b09764688d991fcd9d8d6548742f6 100644 (file)
@@ -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