mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Check all keys despite early failure
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.
(cherry picked from commit 674249f66a)
This commit is contained in:
parent
3955457c95
commit
6859294c26
1 changed files with 3 additions and 2 deletions
|
|
@ -725,6 +725,7 @@ check_numkeys() {
|
|||
|
||||
_check_keys() {
|
||||
ret=0
|
||||
_ret=0
|
||||
|
||||
# Clear key ids.
|
||||
key_set KEY1 ID "no"
|
||||
|
|
@ -767,10 +768,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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue