From 2c0efdce993513f372c54a4ac4bb9da7b86a61e0 Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Fri, 19 Jul 2024 16:03:03 +0530 Subject: [PATCH] ftests/055: Fix quote warnings Fix multiple "Q003 Change outer quotes to avoid escaping inner quotes" warnings. Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- tests/ftests/055-sudo-set_uid_gid_v1.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/ftests/055-sudo-set_uid_gid_v1.py b/tests/ftests/055-sudo-set_uid_gid_v1.py index 7ca972e4..94579b50 100755 --- a/tests/ftests/055-sudo-set_uid_gid_v1.py +++ b/tests/ftests/055-sudo-set_uid_gid_v1.py @@ -53,12 +53,12 @@ def test(config): tasks_uid = utils.get_file_owner_uid(config, tasks_path) if tasks_uid != TASKS_UID: result = consts.TEST_FAILED - cause = 'Expected tasks owner to be {} but it\'s {}'.format(TASKS_UID, tasks_uid) + cause = "Expected tasks owner to be {} but it's {}".format(TASKS_UID, tasks_uid) tasks_gid = utils.get_file_owner_gid(config, tasks_path) if tasks_gid != TASKS_GID: result = consts.TEST_FAILED - tmp_cause = 'Expected tasks group to be {} but it\'s {}'.format(TASKS_GID, tasks_gid) + tmp_cause = "Expected tasks group to be {} but it's {}".format(TASKS_GID, tasks_gid) cause = '\n'.join(filter(None, [cause, tmp_cause])) ctrl_path = os.path.join(CgroupCli.get_controller_mount_point(CONTROLLER), CGNAME, @@ -67,13 +67,13 @@ def test(config): ctrl_uid = utils.get_file_owner_uid(config, ctrl_path) if ctrl_uid != CTRL_UID: result = consts.TEST_FAILED - tmp_cause = 'Expected cgroup.procs owner to be {} but it\'s {}'.format(CTRL_UID, ctrl_uid) + tmp_cause = "Expected cgroup.procs owner to be {} but it's {}".format(CTRL_UID, ctrl_uid) cause = '\n'.join(filter(None, [cause, tmp_cause])) ctrl_gid = utils.get_file_owner_gid(config, ctrl_path) if ctrl_gid != CTRL_GID: result = consts.TEST_FAILED - tmp_cause = 'Expected cgroup.procs group to be {} but it\'s {}'.format(CTRL_GID, ctrl_gid) + tmp_cause = "Expected cgroup.procs group to be {} but it's {}".format(CTRL_GID, ctrl_gid) if not cause: cause = tmp_cause else: -- 2.47.3