mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-07-07 10:45:21 +00:00
tests: Integration test support for virtio-mem
Enabled TestContainerMemoryUpdate support for runtime-rs on s390x and disabled static_sandbox_resource_mgmt to dynamically update the memory. Signed-off-by: Annu Sharma <annu-sharma@ibm.com>
This commit is contained in:
@@ -384,12 +384,14 @@ function TestContainerMemoryUpdate() {
|
||||
fi
|
||||
|
||||
if [[ "${KATA_HYPERVISOR}" == "qemu-runtime-rs" ]]; then
|
||||
# Remove TestContainerMemoryUpdate from passing_test
|
||||
info "TestContainerMemoryUpdate skipped for qemu with runtime-rs"
|
||||
info "Please check out https://github.com/kata-containers/kata-containers/issues/9375"
|
||||
return
|
||||
if [[ "${ARCH}" != "s390x" ]]; then
|
||||
# Remove TestContainerMemoryUpdate from passing_test
|
||||
info "Currently TestContainerMemoryUpdate is only supported on s390x for runtime-rs"
|
||||
info "For other architectures, please check out https://github.com/kata-containers/kata-containers/issues/9375"
|
||||
return
|
||||
fi
|
||||
elif [[ "${KATA_HYPERVISOR}" != "qemu" ]] || [[ "${ARCH}" == "ppc64le" ]]; then
|
||||
return
|
||||
return
|
||||
fi
|
||||
|
||||
for virtio_mem_enabled in 1 0; do
|
||||
@@ -413,6 +415,8 @@ function PrepareContainerMemoryUpdate() {
|
||||
|
||||
# Handle both commented and uncommented enable_virtio_mem
|
||||
sudo sed -i -e 's/^#\?enable_virtio_mem.*$/enable_virtio_mem = true/g' "${kata_config}"
|
||||
# Handle both commented and uncommented static_sandbox_resource_mgmt, set to false
|
||||
sudo sed -i -e 's/^#\?\s*static_sandbox_resource_mgmt.*$/static_sandbox_resource_mgmt = false/g' "${kata_config}"
|
||||
else
|
||||
info "Test container memory update without virtio-mem"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user