diff --git a/tests/integration/cgroups.bats b/tests/integration/cgroups.bats index c5a927bdf..2c49dfef9 100644 --- a/tests/integration/cgroups.bats +++ b/tests/integration/cgroups.bats @@ -138,7 +138,8 @@ function setup() { } @test "runc run (blkio weight)" { - requires root cgroups_v2 + requires cgroups_v2 + [[ "$ROOTLESS" -ne 0 ]] && requires rootless_cgroup set_cgroups_path update_config '.linux.resources.blockIO |= {"weight": 750}'