From 066f8e8b3cdc809b1a1bddbeed282c0bfe86d540 Mon Sep 17 00:00:00 2001 From: Tom Hromatka Date: Tue, 23 May 2023 14:47:10 -0600 Subject: [PATCH] python: Rename get_procs() to get_processes() Rename the python method get_procs() to get_processes() to be more consistent with other functions in the python cgroup class. Signed-off-by: Tom Hromatka --- src/python/libcgroup.pyx | 2 +- tests/ftests/077-pybindings-cgroup_get_procs.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/python/libcgroup.pyx b/src/python/libcgroup.pyx index aa5484b8..d1925f38 100644 --- a/src/python/libcgroup.pyx +++ b/src/python/libcgroup.pyx @@ -594,7 +594,7 @@ cdef class Cgroup: else: return False - def get_procs(self): + def get_processes(self): """Get the processes in this cgroup Return: diff --git a/tests/ftests/077-pybindings-cgroup_get_procs.py b/tests/ftests/077-pybindings-cgroup_get_procs.py index 64f3935e..f1557897 100755 --- a/tests/ftests/077-pybindings-cgroup_get_procs.py +++ b/tests/ftests/077-pybindings-cgroup_get_procs.py @@ -59,7 +59,7 @@ def test(config): cg = Cgroup(CGNAME, Version.CGROUP_V2) for controller in CONTROLLERS: cg.add_controller(controller) - pid_list = cg.get_procs().sort() + pid_list = cg.get_processes().sort() if pid_list != initial_pid_list: result = consts.TEST_FAILED @@ -72,7 +72,7 @@ def test(config): emptycg = Cgroup(EMPTY_CGNAME, Version.CGROUP_V2) for controller in CONTROLLERS: emptycg.add_controller(controller) - empty_pid_list = emptycg.get_procs() + empty_pid_list = emptycg.get_processes() if len(empty_pid_list) != 0: result = consts.TEST_FAILED -- 2.47.2