]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
ftests/059: Fix quote warnings
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Fri, 12 Jul 2024 10:25:38 +0000 (15:55 +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/059-sudo-invalid_systemd_create_scope2.py

index ceaf71676422822a20b4d16258283c2a54b8e709..fb2da183dad68100e87d0b6c0bddd01d62c19dba 100755 (executable)
@@ -48,7 +48,7 @@ def test(config):
     result = consts.TEST_PASSED
     cause = None
 
-    cg1 = Cgroup("InvalidNameBecauseNoSlash", Version.CGROUP_V2)
+    cg1 = Cgroup('InvalidNameBecauseNoSlash', Version.CGROUP_V2)
     cg1.add_controller(CONTROLLER)
     try:
         cg1.create_scope2()
@@ -60,7 +60,7 @@ def test(config):
         result = consts.TEST_FAILED
         cause = 'An invalid cgroup name unexpectedly passed: {}'.format(cg1.name)
 
-    cg2 = Cgroup("Invalid/TooMany/Slashes", Version.CGROUP_V2)
+    cg2 = Cgroup('Invalid/TooMany/Slashes', Version.CGROUP_V2)
     cg2.add_controller(CONTROLLER)
     try:
         cg2.create_scope2()