add a test case for runc update cpu burst

In issue #4210, if we don't provide `--cpu-burst` in `runc update`,
the value of cpu burst will always set to 0.

Signed-off-by: lifubang <lifubang@acmcoder.com>
This commit is contained in:
lifubang
2024-03-15 13:02:22 +08:00
parent 0680e2b6c4
commit afcb9c2ebf

View File

@@ -344,6 +344,14 @@ EOF
[ "$status" -eq 0 ]
check_cpu_burst 500000
# issue: https://github.com/opencontainers/runc/issues/4210
# for systemd, cpu-burst value will be cleared, it's a known issue.
if [ ! -v RUNC_USE_SYSTEMD ]; then
runc update test_update --memory 100M
[ "$status" -eq 0 ]
check_cpu_burst 500000
fi
runc update test_update --cpu-period 900000 --cpu-burst 0
[ "$status" -eq 0 ]
check_cpu_burst 0