mirror of
https://github.com/opencontainers/runc.git
synced 2025-12-24 11:50:58 +08:00
tests/int/update.bats: add checks for runc status
Those were missing for some reason, so we did not fail the test in case "runc update" returned an error. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@@ -347,6 +347,7 @@ EOF
|
||||
}
|
||||
}
|
||||
EOF
|
||||
[ "$status" -eq 0 ]
|
||||
|
||||
runc update -r "$BATS_TMPDIR"/runc-cgroups-integration-test.json test_update
|
||||
[ "$status" -eq 0 ]
|
||||
@@ -448,6 +449,7 @@ EOF
|
||||
}
|
||||
}
|
||||
EOF
|
||||
[ "$status" -eq 0 ]
|
||||
check_cgroup_value "cpu.rt_period_us" "$root_period"
|
||||
check_cgroup_value "cpu.rt_runtime_us" 500001
|
||||
|
||||
@@ -463,6 +465,7 @@ EOF
|
||||
check_cgroup_value "cpu.rt_runtime_us" 500001
|
||||
|
||||
runc update test_update_rt --cpu-rt-period 900001 --cpu-rt-runtime 600001
|
||||
[ "$status" -eq 0 ]
|
||||
|
||||
check_cgroup_value "cpu.rt_period_us" 900001
|
||||
check_cgroup_value "cpu.rt_runtime_us" 600001
|
||||
|
||||
Reference in New Issue
Block a user