]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
ftests/process: Fix quote warnings
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Thu, 8 Aug 2024 11:05:55 +0000 (16:35 +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/process.py

index d03de98f0f1d4a78dc9bb36df512da4c45680e09..021d9f291c93e157edc6a3a4432e7393f39118de 100644 (file)
@@ -35,8 +35,8 @@ class Process(object):
 
     @staticmethod
     def __infinite_loop(config, sleep_time=1):
-        cmd = ["/usr/bin/perl",
-               "-e",
+        cmd = ['/usr/bin/perl',
+               '-e',
                "'while(1){{sleep({})}};'".format(sleep_time)
                ]
 
@@ -53,8 +53,8 @@ class Process(object):
     @staticmethod
     def __cgexec_infinite_loop(config, controller, cgname, sleep_time=1,
                                ignore_systemd=False, replace_idle=False):
-        cmd = ["/usr/bin/perl",
-               "-e",
+        cmd = ['/usr/bin/perl',
+               '-e',
                "'while(1){{sleep({})}};'".format(sleep_time)
                ]
 
@@ -70,7 +70,7 @@ class Process(object):
         # get the PID of the newly spawned infinite loop
         cmd = (
                 "ps x | grep perl | grep 'sleep({})' | awk '{{print $1}}'"
-                "".format(sleep_time)
+                ''.format(sleep_time)
               )
 
         if config.args.container: