From: Kamalesh Babulal Date: Wed, 24 Jul 2024 10:43:50 +0000 (+0530) Subject: ftests/032: Fix couple of quite warnings X-Git-Tag: v3.2.0~70 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1d0762ce15733bca99dfebf085f6a508570f52bb;p=thirdparty%2Flibcgroup.git ftests/032: Fix couple of quite warnings 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 Signed-off-by: Tom Hromatka --- diff --git a/tests/ftests/032-lscgroup-multiple_g_flags.py b/tests/ftests/032-lscgroup-multiple_g_flags.py index 528c43d7..7fd64c67 100755 --- a/tests/ftests/032-lscgroup-multiple_g_flags.py +++ b/tests/ftests/032-lscgroup-multiple_g_flags.py @@ -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