From: Kamalesh Babulal Date: Sat, 22 Jun 2024 07:48:29 +0000 (+0530) Subject: ftests/082: Fix quote warnings X-Git-Tag: v3.2.0~86 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6f39a6544c140455feaf6c29d887dcd851e40aef;p=thirdparty%2Flibcgroup.git ftests/082: Fix quote warnings Fix 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/082-pybindings-cgrp_get_curr_ctrl_path-v2.py b/tests/ftests/082-pybindings-cgrp_get_curr_ctrl_path-v2.py index 1426619f..e15c673a 100755 --- a/tests/ftests/082-pybindings-cgrp_get_curr_ctrl_path-v2.py +++ b/tests/ftests/082-pybindings-cgrp_get_curr_ctrl_path-v2.py @@ -48,7 +48,7 @@ def test(config): result = consts.TEST_PASSED cause = None - expected_path = "/" + CHILDCG + expected_path = '/' + CHILDCG pid = CgroupCli.get_pids_in_cgroup(config, CHILDCG, CONTROLLER)[0] cgrp = Cgroup(CGNAME, Version.CGROUP_V2) @@ -67,7 +67,7 @@ def test(config): # It's expected to fail because we not had created cgroup. # try: - cgrp_path = cgrp.get_current_controller_path(pid, "memory") + cgrp_path = cgrp.get_current_controller_path(pid, 'memory') except RuntimeError as re: if '50001' not in str(re): raise re @@ -77,7 +77,7 @@ def test(config): # It's expected to fail because such controller doesn't exists. # try: - cgrp_path = cgrp.get_current_controller_path(pid, "invalid") + cgrp_path = cgrp.get_current_controller_path(pid, 'invalid') except RuntimeError as re: if '50011' not in str(re): raise re