]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
ftests: Update test 45 to match the pybindings
authorTom Hromatka <tom.hromatka@oracle.com>
Fri, 29 Apr 2022 16:55:43 +0000 (10:55 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 29 Apr 2022 16:55:43 +0000 (10:55 -0600)
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
ftests/045-pybindings-list_mount_points.py

index 785ef7c2728c0acf5fdf31033dce2f6f39c13728..5e51c562c41728f2e4ad726d54262548256549ef 100755 (executable)
@@ -36,9 +36,8 @@ def test(config):
     result = consts.TEST_PASSED
     cause = None
 
-    cg1 = Cgroup(CGNAME, Version.CGROUP_V1)
-    mount_points_v1 = cg1.cgroup_list_mount_points(Version.CGROUP_V1)
-    mount_points_v2 = cg1.cgroup_list_mount_points(Version.CGROUP_V2)
+    mount_points_v1 = Cgroup.mount_points(Version.CGROUP_V1)
+    mount_points_v2 = Cgroup.mount_points(Version.CGROUP_V2)
     if not mount_points_v1 and not mount_points_v2:
         result = consts.TEST_FAILED
         cause = ("No cgroup mount point found")