]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
ftests: Fix false positive in 013 testcase main
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Sat, 5 Jul 2025 06:38:04 +0000 (12:08 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 9 Jul 2025 20:07:51 +0000 (14:07 -0600)
Fix the false positive in the testcase number 013, the return value
should be by default TEST_FAILED, instead of TEST_PASSED. The flow of
the testcase is designed to set the return value to TEST_PASSED only
if the current kernel's cpu controller settings matches any of the
expected cpu controller output list.

Fixes: 6bea4df6d283 ("ftests/013: Refactor code to match outputs with same line")
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
tests/ftests/013-cgget-multiple_g_flags.py

index 8af244ce913ec1d31080163e212bd7a8a01d540c..1f7dd2571ca20c6a7eac44961d527e6da58bdcdb 100755 (executable)
@@ -30,7 +30,7 @@ def setup(config):
 
 
 def test(config):
-    result = consts.TEST_PASSED
+    result = consts.TEST_FAILED
     cause = None
 
     out = Cgroup.get(config, controller=[CONTROLLER1, CONTROLLER2],