From: Kamalesh Babulal Date: Wed, 18 May 2022 17:19:52 +0000 (-0600) Subject: tests/016: fix the cause in prereqs X-Git-Tag: v2.0.3~11^2^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a8667b17cf0bf085942f45ae4f4f5efb8f3c9cc;p=thirdparty%2Flibcgroup.git tests/016: fix the cause in prereqs Match the cause message in the prereqs(), for containers check with other test cases. This helps the automated scripts to check/match for the right errors. Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka (cherry picked from commit bb8ab50f2ab16d2808c3ba0bf6f20303f382b930) --- diff --git a/ftests/016-cgget-invalid_options.py b/ftests/016-cgget-invalid_options.py index 80ecc433..692c7e13 100755 --- a/ftests/016-cgget-invalid_options.py +++ b/ftests/016-cgget-invalid_options.py @@ -38,7 +38,7 @@ def prereqs(config): # This causes issues with the error handling of this test if not config.args.container: result = consts.TEST_SKIPPED - cause = "This test cannot be run outside of a container" + cause = 'This test must be run within a container' return result, cause return result, cause