mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-28 20:41:04 +00:00
Merge pull request #9685 from GabyCT/topic/fixic
tests: Fix indentation in confidential common script
This commit is contained in:
commit
eaaab19763
@ -38,21 +38,21 @@ function get_remote_command_per_hypervisor() {
|
|||||||
echo "${REMOTE_COMMAND_PER_HYPERVISOR[${KATA_HYPERVISOR}]}"
|
echo "${REMOTE_COMMAND_PER_HYPERVISOR[${KATA_HYPERVISOR}]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# This function verifies whether the input hypervisor supports confidential tests and
|
# This function verifies whether the input hypervisor supports confidential tests and
|
||||||
# relies on `KATA_HYPERVISOR` being an environment variable
|
# relies on `KATA_HYPERVISOR` being an environment variable
|
||||||
function check_hypervisor_for_confidential_tests() {
|
function check_hypervisor_for_confidential_tests() {
|
||||||
local kata_hypervisor="${1}"
|
local kata_hypervisor="${1}"
|
||||||
# This check must be done with "<SPACE>${KATA_HYPERVISOR}<SPACE>" to avoid
|
# This check must be done with "<SPACE>${KATA_HYPERVISOR}<SPACE>" to avoid
|
||||||
# having substrings, like qemu, being matched with qemu-$something.
|
# having substrings, like qemu, being matched with qemu-$something.
|
||||||
if check_hypervisor_for_confidential_tests_tee_only "${kata_hypervisor}" ||\
|
if check_hypervisor_for_confidential_tests_tee_only "${kata_hypervisor}" ||\
|
||||||
[[ " ${SUPPORTED_NON_TEE_HYPERVISORS[*]} " =~ " ${kata_hypervisor} " ]]; then
|
[[ " ${SUPPORTED_NON_TEE_HYPERVISORS[*]} " =~ " ${kata_hypervisor} " ]]; then
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# This function verifies whether the input hypervisor supports confidential tests and
|
# This function verifies whether the input hypervisor supports confidential tests and
|
||||||
# relies on `KATA_HYPERVISOR` being an environment variable
|
# relies on `KATA_HYPERVISOR` being an environment variable
|
||||||
function check_hypervisor_for_confidential_tests_tee_only() {
|
function check_hypervisor_for_confidential_tests_tee_only() {
|
||||||
local kata_hypervisor="${1}"
|
local kata_hypervisor="${1}"
|
||||||
|
Loading…
Reference in New Issue
Block a user