From 1878a91a3003754eb889b84ecbf808b41a6a8e02 Mon Sep 17 00:00:00 2001 From: Tom Krizek Date: Fri, 5 Jan 2024 15:14:26 +0100 Subject: [PATCH] Handle dig timing out gracefully in upforwd (cherry picked from commit 7b77574b6df1d353cb229502a38955f92ce8b90f) --- bin/tests/system/upforwd/tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/tests/system/upforwd/tests.sh b/bin/tests/system/upforwd/tests.sh index 3c9cfe2c98..9165ba9e32 100644 --- a/bin/tests/system/upforwd/tests.sh +++ b/bin/tests/system/upforwd/tests.sh @@ -273,7 +273,7 @@ if test -f keyname; then update add unsigned.example2. 600 TXT Foo send EOF - $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=$(expr $status + $ret)