Merge pull request #9685 from GabyCT/topic/fixic

tests: Fix indentation in confidential common script
This commit is contained in:
GabyCT 2024-05-22 11:53:33 -06:00 committed by GitHub
commit eaaab19763
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,12 +44,12 @@ function check_hypervisor_for_confidential_tests() {
local kata_hypervisor="${1}"
# This check must be done with "<SPACE>${KATA_HYPERVISOR}<SPACE>" to avoid
# having substrings, like qemu, being matched with qemu-$something.
if check_hypervisor_for_confidential_tests_tee_only "${kata_hypervisor}" ||\
[[ " ${SUPPORTED_NON_TEE_HYPERVISORS[*]} " =~ " ${kata_hypervisor} " ]]; then
return 0
else
return 1
fi
if check_hypervisor_for_confidential_tests_tee_only "${kata_hypervisor}" ||\
[[ " ${SUPPORTED_NON_TEE_HYPERVISORS[*]} " =~ " ${kata_hypervisor} " ]]; then
return 0
else
return 1
fi
}
# This function verifies whether the input hypervisor supports confidential tests and