]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
ftests/016: fix the exit code on invalid parameters
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Thu, 29 Sep 2022 10:43:02 +0000 (16:13 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 30 Sep 2022 14:34:56 +0000 (08:34 -0600)
Fix the expected exit code for invalid/bad parameters passed to
libcgroup tools from '255' to '129' and '1' to '129'.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
tests/ftests/016-cgget-invalid_options.py

index 55d366330af0fd2e39704a294e8cd4dad2a297c6..bd8e2ea405544d6dfcee10f48662b8bd0b473584 100755 (executable)
@@ -49,10 +49,10 @@ def test(config):
             cause = "#1 Expected 'Wrong input parameters' to be in stderr"
             return result, cause
 
-        if re.ret != 255:
+        if re.ret != 129:
             result = consts.TEST_FAILED
             cause = (
-                        '#1 Expected return code of 255 but received {}'
+                        '#1 Expected return code of 129 but received {}'
                         ''.format(re.ret)
                     )
             return result, cause
@@ -71,10 +71,10 @@ def test(config):
             cause = "#2 Expected 'Wrong input parameters' to be in stderr"
             return result, cause
 
-        if re.ret != 255:
+        if re.ret != 129:
             result = consts.TEST_FAILED
             cause = (
-                        '#2 Expected return code of 255 but received {}'
+                        '#2 Expected return code of 129 but received {}'
                         ''.format(re.ret)
                     )
             return result, cause
@@ -172,10 +172,10 @@ def test(config):
             cause = "#6 Expected 'Wrong input parameters' to be in stderr"
             return result, cause
 
-        if re.ret != 1:
+        if re.ret != 129:
             result = consts.TEST_FAILED
             cause = (
-                        '#6 Expected return code of 1 but received {}'
+                        '#6 Expected return code of 129 but received {}'
                         ''.format(re.ret)
                     )
             return result, cause