Handle non-zero return codes in upforwd test

(cherry picked from commit 855f5b143a)
This commit is contained in:
Tom Krizek 2023-06-15 15:22:59 +02:00
parent ffa70cad1a
commit 09cc0a03f5
No known key found for this signature in database
GPG key ID: 01623B9B652A20A7

View file

@ -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))