]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Set ret=1 if _wait_for_stats does not succeed
authorMark Andrews <marka@isc.org>
Sun, 6 Aug 2023 23:38:56 +0000 (09:38 +1000)
committerMark Andrews <marka@isc.org>
Tue, 8 Aug 2023 23:42:23 +0000 (23:42 +0000)
Errors getting transfer statistics from named.run where not detected
as ret was not set to one if there hadn't been a success after looping
for a while.

(cherry picked from commit 287a1ac09baa8083261ad794033368b3506f886f)

bin/tests/system/ixfr/tests.sh

index 4b366a528958029d04846e0f9fca7b3b06c815a7..1d37b45356781d5eb3a167a5204ea77a4b84e94c 100644 (file)
@@ -376,13 +376,13 @@ _wait_for_stats () {
 n=$((n+1))
 echo_i "checking whether named calculates incoming IXFR statistics correctly ($n)"
 ret=0
-retry_quiet 10 _wait_for_stats 10.53.0.3 "Transfer completed" stats.incoming
+retry_quiet 10 _wait_for_stats 10.53.0.3 "Transfer completed" stats.incoming || ret=1
 if [ $ret != 0 ]; then echo_i "failed"; fi
 status=$((status+ret))
 
 n=$((n+1))
 echo_i "checking whether named calculates outgoing IXFR statistics correctly ($n)"
-retry_quiet 10 _wait_for_stats 10.53.0.4 "IXFR ended" stats.outgoing
+retry_quiet 10 _wait_for_stats 10.53.0.4 "IXFR ended" stats.outgoing || ret=1
 if [ $ret != 0 ]; then echo_i "failed"; fi
 status=$((status+ret))