]> 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>
Mon, 8 Jan 2024 16:03:35 +0000 (17:03 +0100)
bin/tests/system/names/tests.sh

index f104886d7743b9343cf541544e02325a63acbad9..453f8ef520a1834e046c0e2b4611d4edb6fdb2d8 100644 (file)
@@ -20,12 +20,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