tests: Fix qemu-coc-dev skip

Fix the logic to make the test skipped on qemu-coco-dev,
rather than the opposite and update the syntax to make it
clearer as it incorrectly got written and reviewed by three
different people in it's prior form.

Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
stevenhorsman 2024-12-18 13:41:42 +00:00
parent 79495379e2
commit dd02b6699e

View File

@ -9,7 +9,9 @@ load "${BATS_TEST_DIRNAME}/../../common.bash"
load "${BATS_TEST_DIRNAME}/tests_common.sh"
setup() {
[ "${KATA_HYPERVISOR}" = "qemu-coco-dev" ] || skip "Test not stable on qemu-coco-dev. See issue #10616"
if [ "${KATA_HYPERVISOR}" == "qemu-coco-dev" ]; then
skip "Test not stable on qemu-coco-dev. See issue #10616"
fi
get_pod_config_dir
job_name="job-pi-test"
@ -40,7 +42,9 @@ setup() {
}
teardown() {
[ "${KATA_HYPERVISOR}" = "qemu-coco-dev" ] || skip "Test not ready yet for ${KATA_HYPERVISOR}"
if [ "${KATA_HYPERVISOR}" == "qemu-coco-dev" ]; then
skip "Test not stable on qemu-coco-dev. See issue #10616"
fi
# Debugging information
kubectl describe pod "$pod_name"