test/k8s: Extend initdata tests to run on s390x

Enable testing of initdata on the qemu-coco-dev and qemu-se
runtime classes, so we can validate the function on s390x

Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
stevenhorsman
2025-07-31 10:02:34 +01:00
committed by rafsalrahim
parent 4cc373c06e
commit 8ee80b4c37

View File

@@ -45,13 +45,16 @@ function setup_kbs_image_policy_for_initdata() {
fi fi
export CURRENT_ARCH=$(uname -m) export CURRENT_ARCH=$(uname -m)
if [ "${CURRENT_ARCH}" != "x86_64" ]; then case "${CURRENT_ARCH}" in
skip "Test skipped as only x86-64 supports, while current platform is ${CURRENT_ARCH}" "x86_64"|"s390x")
fi ;;
*)
skip "Test skipped as only x86-64 & s390x is supported, while current platform is ${CURRENT_ARCH}"
;;
esac
# TODO: Enable for more archs
case "$KATA_HYPERVISOR" in case "$KATA_HYPERVISOR" in
"qemu-tdx"|"qemu-coco-dev"|"qemu-snp") "qemu-tdx"|"qemu-coco-dev"|"qemu-snp"|"qemu-se")
;; ;;
*) *)
skip "Test not supported for ${KATA_HYPERVISOR}." skip "Test not supported for ${KATA_HYPERVISOR}."