From 1179fa92a66e763db878a963336a154d5acb5fd7 Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Tue, 24 Jan 2023 12:37:02 -0700 Subject: [PATCH] tests-047: adopt the change to cgroup_delete_cgroup_ext() 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 Signed-off-by: Tom Hromatka --- tests/ftests/047-cgcreate-delete_cgrp_shared_mnt.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/ftests/047-cgcreate-delete_cgrp_shared_mnt.py b/tests/ftests/047-cgcreate-delete_cgrp_shared_mnt.py index 1d5e59cc..2b86dac0 100755 --- a/tests/ftests/047-cgcreate-delete_cgrp_shared_mnt.py +++ b/tests/ftests/047-cgcreate-delete_cgrp_shared_mnt.py @@ -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 -- 2.47.2