From: Tom Krizek Date: Thu, 15 Jun 2023 13:22:59 +0000 (+0200) Subject: Handle non-zero return codes in upforwd test X-Git-Tag: v9.19.16~45^2~24 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=855f5b143a7b4cd614305dbb8cc50b56d6dfd5ec;p=thirdparty%2Fbind9.git Handle non-zero return codes in upforwd test --- diff --git a/bin/tests/system/upforwd/tests.sh b/bin/tests/system/upforwd/tests.sh index 81343758b6e..02a128eabcf 100644 --- a/bin/tests/system/upforwd/tests.sh +++ b/bin/tests/system/upforwd/tests.sh @@ -394,7 +394,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))