]> 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 21:51:40 +0000 (14:51 -0700)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 10 Feb 2023 21:55:18 +0000 (14:55 -0700)
commitad011a7fda88f226f4ad324a114d44db6961cf16
treef9a3e1acdee3294ca13d602c0766b965e7bdd95f
parentd891cdc966d0103a3816d59ce7a57a5784cd46f6
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>
(cherry picked from commit 2b383cf6eb379efca0f0ee807c7fc2d648640ebb)
tests/ftests/cgroup.py