diff --git a/bin/tests/system/kasp.sh b/bin/tests/system/kasp.sh index e120dcd95c..560ad22eba 100644 --- a/bin/tests/system/kasp.sh +++ b/bin/tests/system/kasp.sh @@ -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: