From 8b6ad36579dde4c6d1251a60437b51aac68d67ce Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Mon, 12 Aug 2024 11:59:04 +0530 Subject: [PATCH] ftests/cgroup: Fix quote warnings Fix "Q003 Change outer quotes to avoid escaping inner quotes" and "Q000 Double quotes found but single quotes preferred" warnings. Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- tests/ftests/cgroup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ftests/cgroup.py b/tests/ftests/cgroup.py index 444f50a2..828e7e3a 100644 --- a/tests/ftests/cgroup.py +++ b/tests/ftests/cgroup.py @@ -630,7 +630,7 @@ class Cgroup(object): if re.ret == 0 and \ 'neither deny nor allow list' in re.stderr: res = re.stdout - elif re.ret == 0 and 'ERROR: can\'t get' in re.stderr: + elif re.ret == 0 and "ERROR: can\'t get" in re.stderr: res = re.stdout else: raise (re) @@ -1179,7 +1179,7 @@ class Cgroup(object): # all of the controllers exist, Yippee return True else: - raise ValueError("Unsupported type: {}".format(type(ctrl_name))) + raise ValueError('Unsupported type: {}'.format(type(ctrl_name))) # Method to enable or disable controllers in the subtree control file @staticmethod -- 2.39.5