mirror of
https://github.com/opencontainers/runc.git
synced 2025-12-24 11:50:58 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user