]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
ftests: Fix syntax errors in test 025
authorTom Hromatka <tom.hromatka@oracle.com>
Wed, 5 Jan 2022 20:22:28 +0000 (13:22 -0700)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 5 Jan 2022 20:22:28 +0000 (13:22 -0700)
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
ftests/025-cgset-multiple_cgroups.py

index bc6ce3a23833422c3f0ed6e66673e34165586729..4742bb6c0b0aa736945dacc99f1627fec464c295 100755 (executable)
@@ -59,7 +59,7 @@ def test(config):
     if value != VALUE:
             result = consts.TEST_FAILED
             cause = "Expected {} to be set to {} in {}, but received {}".format(
-                    setting, VALUES[i], CGNAME1, value)
+                    SETTING, VALUE, CGNAME1, value)
             return result, cause
 
     value = Cgroup.get(config, cgname=CGNAME2, setting=SETTING,
@@ -67,7 +67,7 @@ def test(config):
     if value != VALUE:
             result = consts.TEST_FAILED
             cause = "Expected {} to be set to {} in {}, but received {}".format(
-                    setting, VALUES[i], CGNAME2, value)
+                    SETTING, VALUE, CGNAME2, value)
             return result, cause
 
     return result, cause