]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix catz system test error
authorAram Sargsyan <aram@isc.org>
Wed, 7 May 2025 13:32:15 +0000 (13:32 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Thu, 15 May 2025 11:28:39 +0000 (11:28 +0000)
The '|| ret=1' is omitted from the check. This was introduced in the
b171cacf4f0123ba96bef6eedfc92dfb608db6b7 commit. Fix the error.

bin/tests/system/catz/tests.sh

index 80cbc8168e362ee57a9a7baba5209c0d8c2a87c1..576436886cdf88f6b7a2793a4245c8264900af37 100644 (file)
@@ -2445,8 +2445,8 @@ n=$((n + 1))
 echo_i "waiting for secondary to sync up ($n)"
 ret=0
 wait_for_message ns2/named.run "catz: catz_delzone_cb: zone 'dom17.example' deleted" \
-  && wait_for_message ns2/named.run "catz: catz_delzone_cb: zone 'dom18.example' deleted" \
-  && if [ $ret -ne 0 ]; then echo_i "failed"; fi
+  && wait_for_message ns2/named.run "catz: catz_delzone_cb: zone 'dom18.example' deleted" || ret=1
+if [ $ret -ne 0 ]; then echo_i "failed"; fi
 status=$((status + ret))
 
 n=$((n + 1))