From 339143e3fc60c7f54840b2cce42129ec98c9b018 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 518eac657d..25919f81e3 100644 --- a/bin/tests/system/upforwd/tests.sh +++ b/bin/tests/system/upforwd/tests.sh @@ -240,7 +240,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=$((status + ret))