Skip to content

Commit e83ca51

Browse files
committed
tests/int/cgroups: filter out rdma
Filter out rdma controller since systemd is unable to delegate it. Similar to commits 0527271 and 601cf58. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
1 parent 5f3f559 commit e83ca51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/cgroups.bats

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ function setup() {
4949
if [ $EUID -eq 0 ]; then
5050
check_cgroup_value "cgroup.controllers" "$(cat /sys/fs/cgroup/machine.slice/cgroup.controllers)"
5151
else
52-
# Filter out hugetlb and misc as systemd is unable to delegate them.
53-
check_cgroup_value "cgroup.controllers" "$(sed -e 's/ hugetlb//' -e 's/ misc//' </sys/fs/cgroup/user.slice/user-${EUID}.slice/cgroup.controllers)"
52+
# Filter out controllers that systemd is unable to delegate.
53+
check_cgroup_value "cgroup.controllers" "$(sed 's/ \(hugetlb\|misc\|rdma\)//g' </sys/fs/cgroup/user.slice/user-${EUID}.slice/cgroup.controllers)"
5454
fi
5555
else
5656
check_cgroup_value "cgroup.controllers" "$(cat /sys/fs/cgroup/cgroup.controllers)"

0 commit comments

Comments
 (0)