From 4742fee70b4f742a9d82e1aff81e7e2e8b2d8ae3 Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Sat, 13 Jul 2024 15:57:20 +0530 Subject: [PATCH] ftests/058: 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/058-sudo-systemd_create_scope2.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/ftests/058-sudo-systemd_create_scope2.py b/tests/ftests/058-sudo-systemd_create_scope2.py index 05c03fed..56c1f55e 100755 --- a/tests/ftests/058-sudo-systemd_create_scope2.py +++ b/tests/ftests/058-sudo-systemd_create_scope2.py @@ -94,7 +94,7 @@ def test(config): dir_mode = utils.get_file_permissions(config, dir_path) if int(dir_mode, 8) != DIR_MODE: result = consts.TEST_FAILED - tmp_cause = 'Expected directory mode to be {} but it\'s {}'.format( + tmp_cause = "Expected directory mode to be {} but it's {}".format( format(DIR_MODE, '03o'), dir_mode) cause = '\n'.join(filter(None, [cause, tmp_cause])) @@ -104,20 +104,20 @@ def test(config): ctrl_mode = utils.get_file_permissions(config, ctrl_path) if int(ctrl_mode, 8) != CTRL_MODE: result = consts.TEST_FAILED - tmp_cause = 'Expected cgroup.procs mode to be {} but it\'s {}'.format( + tmp_cause = "Expected cgroup.procs mode to be {} but it's {}".format( format(CTRL_MODE, '03o'), ctrl_mode) cause = '\n'.join(filter(None, [cause, tmp_cause])) uid = utils.get_file_owner_uid(config, ctrl_path) if uid != CTRL_UID: result = consts.TEST_FAILED - tmp_cause = 'Expected cgroup.procs owner to be {} but it\'s {}'.format(CTRL_UID, uid) + tmp_cause = "Expected cgroup.procs owner to be {} but it's {}".format(CTRL_UID, uid) cause = '\n'.join(filter(None, [cause, tmp_cause])) gid = utils.get_file_owner_gid(config, ctrl_path) if gid != CTRL_GID: result = consts.TEST_FAILED - tmp_cause = 'Expected cgroup.procs group to be {} but it\'s {}'.format(CTRL_GID, gid) + tmp_cause = "Expected cgroup.procs group to be {} but it's {}".format(CTRL_GID, gid) cause = '\n'.join(filter(None, [cause, tmp_cause])) return result, cause -- 2.47.3