Skip to content

Commit

Permalink
CI: update memory failed
Browse files Browse the repository at this point in the history
Fixes: #8746

Signed-off-by: alex.lyn <alex.lyn@antgroup.com>
  • Loading branch information
Apokleos committed Jan 2, 2024
1 parent 147729d commit 4605ecf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/integration/cri-containerd/integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ function TestContainerMemoryUpdate() {
sleep 1

vm_size=$(($(sudo crictl exec $cid cat /proc/meminfo | grep "MemTotal:" | awk '{print $2}')*1024))
info "Get MemTotal $vm_size from doing cat /proc/meminfo"
if [ $vm_size -gt $((3*1024*1024*1024)) ] || [ $vm_size -lt $((3*1024*1024*1024-128*1024*1024)) ]; then
testContainerStop
die "The VM memory size $vm_size after decrease is not right"
Expand Down Expand Up @@ -626,7 +627,7 @@ function main() {
# TestContainerSwap

# TODO: runtime-rs doesn't support memory update currently
if [ "$KATA_HYPERVISOR" != "dragonball" ]; then
if [ "$KATA_HYPERVISOR" == "dragonball" ]; then
TestContainerMemoryUpdate 1
TestContainerMemoryUpdate 0
fi
Expand Down

0 comments on commit 4605ecf

Please sign in to comment.