]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
resolver system test didn't record all failures
authorMark Andrews <marka@isc.org>
Mon, 17 Jun 2024 01:36:41 +0000 (11:36 +1000)
committerMark Andrews <marka@isc.org>
Thu, 1 Aug 2024 02:41:45 +0000 (12:41 +1000)
(cherry picked from commit 5843b29f472cff3dad8bbc2b381a1f0d917fe862)

bin/tests/system/resolver/tests.sh

index 83e0ed404c31413adca31abd5e6212e6db86959a..2a3774675b5dbfa77a0f1ee9d9c8ad2614132c75 100755 (executable)
@@ -1060,6 +1060,7 @@ grep "ANSWER: [12]," dig.out.2.${n} >/dev/null || ret=1
 lines=$(awk '$1 == "mixedttl.tld." && $2 > 30 { print }' dig.out.2.${n} | wc -l)
 test ${lines:-1} -ne 0 && ret=1
 if [ $ret != 0 ]; then echo_i "failed"; fi
+status=$((status + ret))
 
 n=$((n + 1))
 echo_i "check resolver behavior when FORMERR for EDNS options happens (${n})"
@@ -1071,7 +1072,6 @@ dig_with_opts +tcp @10.53.0.5 options-formerr A >dig.out.${n} || ret=1
 grep "status: NOERROR" dig.out.${n} >/dev/null || ret=1
 nextpart ns5/named.run | grep "$msg" >/dev/null || ret=1
 if [ $ret != 0 ]; then echo_i "failed"; fi
-
 status=$((status + ret))
 
 echo_i "exit status: $status"