Skip to content

Commit 4612962

Browse files
ls-gggkolyshkin
authored andcommitted
tests/int: add tests for rt_period vs rt_runtime
Signed-off-by: ls-ggg <335814617@qq.com>
1 parent e74ff0f commit 4612962

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/integration/update.bats

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,17 @@ EOF
766766

767767
check_cgroup_value "cpu.rt_period_us" 900001
768768
check_cgroup_value "cpu.rt_runtime_us" 600001
769+
770+
# https://github.com/opencontainers/runc/issues/4094
771+
runc update test_update_rt --cpu-rt-period 10000 --cpu-rt-runtime 3000
772+
[ "$status" -eq 0 ]
773+
check_cgroup_value "cpu.rt_period_us" 10000
774+
check_cgroup_value "cpu.rt_runtime_us" 3000
775+
776+
runc update test_update_rt --cpu-rt-period 100000 --cpu-rt-runtime 20000
777+
[ "$status" -eq 0 ]
778+
check_cgroup_value "cpu.rt_period_us" 100000
779+
check_cgroup_value "cpu.rt_runtime_us" 20000
769780
}
770781

771782
@test "update devices [minimal transition rules]" {

0 commit comments

Comments
 (0)