]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
ftests/032: Fix couple of quite warnings
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Wed, 24 Jul 2024 10:43:50 +0000 (16:13 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Tue, 20 Aug 2024 20:42:50 +0000 (14:42 -0600)
Fix "Q001 Single quote multiline found but double quotes preferred" and
multiple "Q000 Double quotes found but single quotes preferred"
warnings.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
tests/ftests/032-lscgroup-multiple_g_flags.py

index 528c43d7918d4f7581b3f91b37103da50310f0c8..7fd64c677313712ea799d46b755c6e7aaeee1dc7 100755 (executable)
@@ -29,11 +29,11 @@ SIBLING_CHILD_CGNAME = 'cousinlscgroup'
 # When invoking lscgroup with the -g flag, a trailing slash is present on
 # the first cgroup returned (i.e. the cgroup specified in the -g flag)
 #
-EXPECTED_OUT1 = '''{}:/{}/
+EXPECTED_OUT1 = """{}:/{}/
 {}:/{}/{}
 {}:/{}/{}/{}
 {}:/{}/
-{}:/{}/{}'''.format(CONTROLLER, PARENT_CGNAME,
+{}:/{}/{}""".format(CONTROLLER, PARENT_CGNAME,
                     CONTROLLER, PARENT_CGNAME, CHILD_CGNAME,
                     CONTROLLER, PARENT_CGNAME, CHILD_CGNAME, GRANDCHILD_CGNAME,
                     CONTROLLER, SIBLING_CGNAME,
@@ -83,9 +83,9 @@ def test(config):
         result = consts.TEST_FAILED
         cause = (
                     "Expected lscgroup output doesn't match received output\n"
-                    "Expected:\n{}\n"
-                    "Received:\n{}\n"
-                    "".format(utils.indent(EXPECTED_OUT1, 4),
+                    'Expected:\n{}\n'
+                    'Received:\n{}\n'
+                    ''.format(utils.indent(EXPECTED_OUT1, 4),
                               utils.indent(out, 4))
                 )
         return result, cause