]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
tests/016: fix the cause in prereqs
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Wed, 18 May 2022 17:19:52 +0000 (11:19 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 18 May 2022 17:20:03 +0000 (11:20 -0600)
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 <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
(cherry picked from commit bb8ab50f2ab16d2808c3ba0bf6f20303f382b930)

ftests/016-cgget-invalid_options.py

index 80ecc433225e63c7d7bc52e9321eb021a848fe6f..692c7e13ce2c0db62e04cbf77766d0f930b9961e 100755 (executable)
@@ -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