Skip to content

Commit

Permalink
cgroup_fj_common.sh: Disable cgroup controller in cleanup function
Browse files Browse the repository at this point in the history
If you run "cgroup_fj_function.sh cpuset;cpuset_base_ops_testset.sh"
you will encounter following error and cpuset_base_ops will be skipped:

  cpuset_base_ops 1 TCONF: Could not mount cgroup filesystem with cpuset on /dev/cpuset

Signed-off-by: Wei Gao <wegao@suse.com>
Reviewed-by: Li Wang <liwang@redhat.com>
  • Loading branch information
coolgw authored and wangli5665 committed Jun 26, 2024
1 parent 53b4930 commit 1204b1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testcases/kernel/controllers/cgroup_fj/cgroup_fj_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ common_cleanup()
[ -d "$start_path" ] && find "$start_path" -depth -type d -exec rmdir '{}' \;

cgroup_cleanup

[ "$cgroup_version" = "2" ] && ROD echo "-$subsystem" \> "/sys/fs/cgroup/cgroup.subtree_control"
}

. cgroup_lib.sh

0 comments on commit 1204b1d

Please sign in to comment.