]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
ftests/082: Fix quote warnings
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Sat, 22 Jun 2024 07:48:29 +0000 (13:18 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Tue, 20 Aug 2024 20:42:50 +0000 (14:42 -0600)
Fix multiple "Q000 Double quotes found but single quotes preferred"
warnings.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
tests/ftests/082-pybindings-cgrp_get_curr_ctrl_path-v2.py

index 1426619fe74ed8a5262631f25d2847b0f77c7090..e15c673a9fed30b7c1b28cd5066d45c41378ef18 100755 (executable)
@@ -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