]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
ftests: Don't run test 089 in a container
authorTom Hromatka <tom.hromatka@oracle.com>
Tue, 1 Apr 2025 18:07:56 +0000 (18:07 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 2 Apr 2025 18:45:17 +0000 (12:45 -0600)
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Acked-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
tests/ftests/089-cgset-recursive_flag.py

index f60e4f3dff1e77c88fe256bd3053779c15553167..8cce98285c2af8797f300caafa4350c7dde10643 100755 (executable)
@@ -37,7 +37,14 @@ DEFAULT_VALUE_V1_V2 = '0-1'
 
 
 def prereqs(config):
-    pass
+    result = consts.TEST_PASSED
+    cause = None
+
+    if config.args.container:
+        result = consts.TEST_SKIPPED
+        cause = 'This test cannot be run within a container'
+
+    return result, cause
 
 
 def is_hybrid_with_ctrl(config):
@@ -160,7 +167,9 @@ def teardown(config):
 
 
 def main(config):
-    prereqs(config)
+    [result, cause] = prereqs(config)
+    if result != consts.TEST_PASSED:
+        return [result, cause]
 
     setup(config)
     [result, cause] = test(config)