]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Check all keys despite early failure
authorMatthijs Mekking <matthijs@isc.org>
Tue, 27 Jun 2023 14:27:35 +0000 (16:27 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Thu, 6 Jul 2023 07:27:29 +0000 (09:27 +0200)
In the kasp script, if one expected key is not found, continue checking
the other key ids, even if there is no match for the first one.  This
provides a bit more information which keys mismatch and makes for
easier debugging test failures.

bin/tests/system/kasp.sh

index e120dcd95ce586159b2abd25188c0218031bed40..560ad22eba30aae5f59fe8f0bc9a36a5eb83bcb4 100644 (file)
@@ -728,6 +728,7 @@ check_numkeys() {
 
 _check_keys() {
        ret=0
+       _ret=0
 
        # Clear key ids.
        key_set KEY1 ID "no"
@@ -770,10 +771,10 @@ _check_keys() {
 
                # If ret is still non-zero, none of the files matched.
                echo_i "failed"
-               return 1
+               _ret=1
        done
 
-       return 0
+       return $_ret
 }
 
 # Check keys for a configured zone. This verifies: