From 60a8fee3b2074c30cb0ea37bbc12c7d6aea2f0f0 Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Thu, 25 Jul 2024 16:15:49 +0530 Subject: [PATCH] ftests/031: 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 --- tests/ftests/031-lscgroup-g_flag.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/ftests/031-lscgroup-g_flag.py b/tests/ftests/031-lscgroup-g_flag.py index 334a3e99..339da492 100755 --- a/tests/ftests/031-lscgroup-g_flag.py +++ b/tests/ftests/031-lscgroup-g_flag.py @@ -27,9 +27,9 @@ GRANDCHILD_CGNAME = 'grandchildlscgroup' # 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) @@ -75,9 +75,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)) ) -- 2.47.3