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

index f02d4fc4328e6e27bb4c61da0679ac2fce959b04..f5e20388157c0b02043596dae91a97f69ebe9bda 100644 (file)
@@ -50,7 +50,7 @@ do
        (dig_with_opts -d +qr @10.53.0.3 -f query.list > "dig.out$i.6.test$n" 2>&1) & pid6="$!"
 
        retry_quiet "$timeout" wait_for_pid "$pid1" "$pid2" "$pid3" "$pid4" "$pid5" "$pid6" || { echo_i "wait_for_pid failed"; ret=1; }
-       kill -TERM "$pid1" "$pid2" "$pid3" "$pid4" "$pid5" "$pid6" 2>/dev/null
+       kill -TERM "$pid1" "$pid2" "$pid3" "$pid4" "$pid5" "$pid6" 2>/dev/null || true
 
        wait "$pid1" || { echo_i "wait $pid1 (dig.out$i.1.test$n) failed with $?"; ret=1; }
        wait "$pid2" || { echo_i "wait $pid2 (dig.out$i.2.test$n) failed with $?"; ret=1; }