]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
tests/cgroup - Add more helpers for cgroup delegation
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Fri, 10 Feb 2023 06:02:42 +0000 (06:02 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 10 Feb 2023 21:44:25 +0000 (14:44 -0700)
commit2b383cf6eb379efca0f0ee807c7fc2d648640ebb
treee5d2d629f3dc53a0a66c18324be61de8e61279ad
parent7ad92f62b9d1db753f6627cd850f07aacac36645
tests/cgroup - Add more helpers for cgroup delegation

Add more helpers to work with systemd cgroup delegation, this patch
adds:
- create_and_validate() to create cgroups and validate if they were
  created under the delegate systemd subtree.
- exists() is called by create_and_validate() to perform the
  validation part.

Suggested-by: Tom Hromatka <tom.hromatka@oracle.com>
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
tests/ftests/cgroup.py