]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
ftests: Cleanup pid logic in functional tests
authorTom Hromatka <tom.hromatka@oracle.com>
Fri, 17 Feb 2023 22:16:34 +0000 (15:16 -0700)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 1 Mar 2023 15:09:18 +0000 (08:09 -0700)
commit8483426ea7dcfe1e513ecbfc287a3a51f1097335
tree752914156a2251d69100747fbf8318da6193d3a5
parent72a3d75036f00541cbc4a0dac3d9c6ca138869e8
ftests: Cleanup pid logic in functional tests

PIDs were inconsistently being managed in the functional tests.  Some
functions treated them as `int` and in others they were `str`.  Modify
all functions that deal with PIDs to treat them as `int` or a list of
`int`s.

Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
15 files changed:
tests/ftests/034-cgexec-basic_cgexec.py
tests/ftests/036-cgset-multi_thread.py
tests/ftests/046-cgexec-empty_controller.py
tests/ftests/049-sudo-systemd_create_scope.py
tests/ftests/050-sudo-systemd_create_scope_w_pid.py
tests/ftests/052-sudo-cgroup_attach_task.py
tests/ftests/053-sudo-cgroup_attach_task_pid.py
tests/ftests/058-sudo-systemd_create_scope2.py
tests/ftests/060-sudo-cgconfigparser-systemd.py
tests/ftests/065-sudo-systemd_cgclassify-v1.py
tests/ftests/066-sudo-systemd_cgclassify-v2.py
tests/ftests/067-sudo-systemd_cgexec-v1.py
tests/ftests/068-sudo-systemd_cgexec-v2.py
tests/ftests/cgroup.py
tests/ftests/process.py