From: Tom Krizek Date: Fri, 5 Jan 2024 14:14:26 +0000 (+0100) Subject: Handle dig timing out gracefully in upforwd X-Git-Tag: v9.19.22~94^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7b77574b6df1d353cb229502a38955f92ce8b90f;p=thirdparty%2Fbind9.git Handle dig timing out gracefully in upforwd --- diff --git a/bin/tests/system/upforwd/tests.sh b/bin/tests/system/upforwd/tests.sh index efb73e0aff8..6c8e40b5a9b 100644 --- a/bin/tests/system/upforwd/tests.sh +++ b/bin/tests/system/upforwd/tests.sh @@ -404,7 +404,7 @@ EOF n=$((n + 1)) wait_for_log_thrice - $DIG -p ${PORT} unsigned.example2 A @10.53.0.1 >dig.out.ns1.test$n + $DIG -p ${PORT} unsigned.example2 A @10.53.0.1 >dig.out.ns1.test$n || ret=1 grep "status: NOERROR" dig.out.ns1.test$n >/dev/null || ret=1 if [ $ret != 0 ]; then echo_i "failed"; fi status=$((status + ret)) @@ -439,7 +439,7 @@ EOF n=$((n + 1)) wait_for_log_thrice - $DIG -p ${PORT} unsigned-dot.example2 A @10.53.0.1 >dig.out.ns1.test$n + $DIG -p ${PORT} unsigned-dot.example2 A @10.53.0.1 >dig.out.ns1.test$n || ret=1 grep "status: NOERROR" dig.out.ns1.test$n >/dev/null || ret=1 if [ $ret != 0 ]; then echo_i "failed"; fi status=$((status + ret))