]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
tests-047: adopt the change to cgroup_delete_cgroup_ext()
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Tue, 24 Jan 2023 19:37:02 +0000 (12:37 -0700)
committerTom Hromatka <tom.hromatka@oracle.com>
Tue, 24 Jan 2023 19:37:08 +0000 (12:37 -0700)
With the bug fix to the cgroup_delete_cgroup_ext(), where calling
cgdelete twice back to back (not using -r option) on the cgroup created
on the mount point shared by the controller will fail. Adopt the
change in the API to testcase too.

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

index 1d5e59ccc2ac6dcbf97b6f5a376b561a61e355ae..2b86dac0dc12003d1b066685ea67d2464381f95a 100755 (executable)
@@ -59,10 +59,7 @@ def test(config):
     try:
         Cgroup.delete(config, CONTROLLER1, CGNAME)
     except RunError as re:
-        if 'No such file or directory' in re.stderr:
-            cause = 'Missing support to delete cgroup on shared mount points.'
-            result = consts.TEST_FAILED
-        else:
+        if 'No such file or directory' not in re.stderr:
             raise re
 
     return result, cause