From 09cc0a03f5913b719126977b6a33efa5615b2525 Mon Sep 17 00:00:00 2001 From: Tom Krizek Date: Thu, 15 Jun 2023 15:22:59 +0200 Subject: [PATCH] Handle non-zero return codes in upforwd test (cherry picked from commit 855f5b143a7b4cd614305dbb8cc50b56d6dfd5ec) --- 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 9c61136ef8..58c1d73601 100644 --- a/bin/tests/system/upforwd/tests.sh +++ b/bin/tests/system/upforwd/tests.sh @@ -233,7 +233,7 @@ ret=0 update add another.unsigned.example. 600 TXT Bar send EOF -} > nsupdate.out.$n 2>&1 +} > nsupdate.out.$n 2>&1 && ret=1 grep REFUSED nsupdate.out.$n > /dev/null || ret=1 if [ $ret != 0 ] ; then echo_i "failed"; status=$((status + ret)); fi n=$((n + 1))