]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Handle non-zero return codes in upforwd test
authorTom Krizek <tkrizek@isc.org>
Thu, 15 Jun 2023 13:22:59 +0000 (15:22 +0200)
committerTom Krizek <tkrizek@isc.org>
Fri, 14 Jul 2023 13:49:15 +0000 (15:49 +0200)
bin/tests/system/upforwd/tests.sh

index 81343758b6ebece7856f0e47a2b8b9cdc0adbd9e..02a128eabcf710e03757f211f1a26a682c7740f7 100644 (file)
@@ -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))