]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
ftests/090: Enable cpuset for root.cgroup.subtree_controller
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Wed, 9 Jul 2025 10:24:57 +0000 (10:24 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 9 Jul 2025 20:02:21 +0000 (14:02 -0600)
Some version of systemd doesn't enable 'cpuset' controller for the
cgroups below default hierarchy root. Enable it, before stressing '-R'
option on cgroup v2.

-----------------------------------------------------------------
Test Results:
        Run Date:                          Jul 09 10:24:25
        Passed:                                  1 test(s)
        Skipped:                                 0 test(s)
        Failed:                                  0 test(s)
-----------------------------------------------------------------
Timing Results:
        Test                             Time (sec)
        -------------------------------------------
        setup                                  0.00
        090-cgxset-recursive_flag.py           0.27
        teardown                               0.00
        -------------------------------------------
        Total Run Time                         0.27

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
tests/ftests/090-cgxset-recursive_flag.py

index e99665ab00cec639cfba8c40ab1959e95ca8bfa1..d8408539d05301f0216fb713eb5025db433b1d01 100755 (executable)
@@ -147,6 +147,8 @@ def test_cgroup_hybrid(config):
 
 
 def test_cgroup_unified(config):
+    Cgroup.xset(config, cgname=PARENT + "/../", setting=SETTING_V2_SUBTREE,
+                value=VALUE_V1_V2_SUBTREE, version=CGRP_VER_V2, recursive=False)
     cgroup_settings_helper(config, SETTING_V1, VALUE_V1, DEFAULT_VALUE_V1, CGRP_VER_V1)
     result, cause = cgroup_subtree_helper(config, SETTING_V2_SUBTREE, VALUE_V2_SUBTREE, CGRP_VER_V2)