]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Handle dig timing out gracefully in names
authorTom Krizek <tkrizek@isc.org>
Fri, 5 Jan 2024 14:09:33 +0000 (15:09 +0100)
committerTom Krizek <tkrizek@isc.org>
Tue, 9 Jan 2024 12:43:25 +0000 (13:43 +0100)
(cherry picked from commit 410aa5aeabfb532fd442acd8943b14e366308a30)

bin/tests/system/names/tests.sh

index f487413644e7f5dad13df349556f3892f9a43668..ff9383de4935c47c7f296c71c2f9d4d24880cd08 100644 (file)
@@ -19,12 +19,12 @@ DIGOPTS="+nosea +stat +noquest +nocomm +nocmd -p ${PORT}"
 status=0
 
 echo_i "Getting message size with compression enabled"
-$DIG $DIGOPTS -b 10.53.0.1 @10.53.0.1 mx example >dig.compen.test
+$DIG $DIGOPTS -b 10.53.0.1 @10.53.0.1 mx example >dig.compen.test || ret=1
 COMPEN=$(grep ';; MSG SIZE' dig.compen.test | sed -e "s/.*: //g")
 cat dig.compen.test | grep -v ';;' | sort >dig.compen.sorted.test
 
 echo_i "Getting message size with compression disabled"
-$DIG $DIGOPTS -b 10.53.0.2 @10.53.0.1 mx example >dig.compdis.test
+$DIG $DIGOPTS -b 10.53.0.2 @10.53.0.1 mx example >dig.compdis.test || ret=1
 COMPDIS=$(grep ';; MSG SIZE' dig.compdis.test | sed -e "s/.*: //g")
 cat dig.compdis.test | grep -v ';;' | sort >dig.compdis.sorted.test