tests/k8s: skip seccomp tests for qemu-coco-dev

This test fails with qemu-coco-dev configuration and guest-pull image pull.
Unlike other tests that I've seen failing on this scenario, k8s-seccomp.bats
fails after a couple of consecutive executions, so it's that kind of failure
that happens once in a while.

Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
This commit is contained in:
Wainer dos Santos Moschetta
2024-05-28 14:50:21 -03:00
parent b62ad71c43
commit 18896efa3c

View File

@@ -8,6 +8,8 @@ load "${BATS_TEST_DIRNAME}/../../common.bash"
load "${BATS_TEST_DIRNAME}/tests_common.sh"
setup() {
[ "${KATA_HYPERVISOR:-}" = "qemu-coco-dev" ] && \
skip "This test fails intermittently for ${KATA_HYPERVISOR:-}"
pod_name="seccomp-container"
get_pod_config_dir
@@ -30,6 +32,8 @@ setup() {
}
teardown() {
[ "${KATA_HYPERVISOR:-}" = "qemu-coco-dev" ] && \
skip "This test fails intermittently for ${KATA_HYPERVISOR:-}"
# For debugging purpose
echo "seccomp mode is ${seccomp_mode}, expected $expected_seccomp_mode"
kubectl describe "pod/${pod_name}"