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

Add more helpers to work with systemd cgroup delegation, this patch
adds:
- remove_scope_slice_conf() to remove the cgconfig file created and
  remove the scope cgroup and slice cgroups.
- write_config_with_pid() to write a cgconfig file with the systemd
  configurations.

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