From b060fb5b310826e087f515913896eed43f7a9dba Mon Sep 17 00:00:00 2001 From: stevenhorsman Date: Fri, 12 Jul 2024 17:43:03 +0100 Subject: [PATCH] tests/k8s: Skip measured rootfs test The only kernel built for measured rootfs was the kernel-tdx-experimental, so this test only ran in the qemu-tdx job runs the test. In commit 6cbdba7 we switched all TEE configurations to use the same kernel-confidential, so rootfs measured is disabled for qemu-tdx too now. The VM still fails to boot (because of a different reason...) but the bug in the assert_logs_contain, fixed in this PR was masking the checks on the logs. We still have a few open issues related to measured rootfs and generating the root hash, so let's skip this test that doesn't work until they are looked at Signed-off-by: stevenhorsman --- tests/integration/kubernetes/k8s-measured-rootfs.bats | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/integration/kubernetes/k8s-measured-rootfs.bats b/tests/integration/kubernetes/k8s-measured-rootfs.bats index 6ad04e434..47355d0d6 100644 --- a/tests/integration/kubernetes/k8s-measured-rootfs.bats +++ b/tests/integration/kubernetes/k8s-measured-rootfs.bats @@ -9,10 +9,12 @@ load "${BATS_TEST_DIRNAME}/lib.sh" load "${BATS_TEST_DIRNAME}/tests_common.sh" check_and_skip() { - # Currently the only kernel built with measured rootfs support is - # the kernel-tdx-experimental. - [ "${KATA_HYPERVISOR}" = "qemu-tdx" ] || \ - skip "measured rootfs tests not implemented for hypervisor: $KATA_HYPERVISOR" + # Currently the kernel-confidential, isn't built withh measured rootfs support, so this test + # should be skipped until it is + # See https://github.com/kata-containers/kata-containers/issues/9612, + # https://github.com/kata-containers/kata-containers/issues/7235 + # and https://github.com/kata-containers/kata-containers/issues/7415 + skip "measured rootfs tests not implemented for hypervisor: $KATA_HYPERVISOR" } setup() {