diff --git a/tests/integration/cgroups.bats b/tests/integration/cgroups.bats index 106b15fac..88d2eb89e 100644 --- a/tests/integration/cgroups.bats +++ b/tests/integration/cgroups.bats @@ -174,17 +174,40 @@ function setup() { runc run -d --console-socket "$CONSOLE_SOCKET" test_dev_weight [ "$status" -eq 0 ] - # The loop device itself is no longer needed. - losetup -d "$dev" - if [ -v CGROUP_V2 ]; then file="io.bfq.weight" else file="blkio.bfq.weight_device" fi - weights=$(get_cgroup_value $file) - [[ "$weights" == *"default 333"* ]] - [[ "$weights" == *"$major:$minor 444"* ]] + weights1=$(get_cgroup_value $file) + + # Check that runc update works. + runc update -r - test_dev_weight <