From: Tom Hromatka Date: Tue, 23 May 2023 20:47:10 +0000 (-0600) Subject: python: Rename get_procs() to get_processes() X-Git-Tag: v3.1.0~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=066f8e8b3cdc809b1a1bddbeed282c0bfe86d540;p=thirdparty%2Flibcgroup.git 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 --- 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