From: Kamalesh Babulal Date: Thu, 29 Sep 2022 10:43:02 +0000 (+0530) Subject: ftests/016: fix the exit code on invalid parameters X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa214280a12af55a3dd9c37e3231913a3faec11c;p=thirdparty%2Flibcgroup.git ftests/016: fix the exit code on invalid parameters 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 Signed-off-by: Tom Hromatka (cherry picked from commit f089a9f66ad13aba7972f009f1ff1f61500dcd0e) --- diff --git a/tests/ftests/016-cgget-invalid_options.py b/tests/ftests/016-cgget-invalid_options.py index 55d36633..bd8e2ea4 100755 --- a/tests/ftests/016-cgget-invalid_options.py +++ b/tests/ftests/016-cgget-invalid_options.py @@ -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