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>
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