]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
ftests/071: Fix quote warnings
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Thu, 11 Jul 2024 10:23:31 +0000 (15:53 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Tue, 20 Aug 2024 20:42:50 +0000 (14:42 -0600)
Fix multiple "Q003 Change outer quotes to avoid escaping inner quotes"
warnings.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
tests/ftests/071-sudo-set_default_systemd_cgroup.py

index 1952dd5097bf024b3dbc634d23b14fc1bac74314..db34deab7aab7df2f2b8c894c91e56f682bc4414 100755 (executable)
@@ -58,7 +58,7 @@ def test(config):
     except RuntimeError as re:
         if 'Failed to set' not in str(re):
             result = consts.TEST_FAILED
-            cause = 'Expected \'Failed to set\' to be in the exception, ' \
+            cause = "Expected 'Failed to set' to be in the exception, " \
                     'received {}'.format(str(re))
     else:
         result = consts.TEST_FAILED
@@ -110,7 +110,7 @@ def test(config):
     except RuntimeError as re:
         if 'Failed to set' not in str(re):
             result = consts.TEST_FAILED
-            tmp_cause = 'Expected \'Failed to set\' to be in the exception, ' \
+            tmp_cause = "Expected 'Failed to set' to be in the exception, " \
                         'received {}'.format(str(re))
             cause = '\n'.join(filter(None, [cause, tmp_cause]))
     else:
@@ -133,7 +133,7 @@ def test(config):
 
         if pid != cg_pid:
             result = consts.TEST_FAILED
-            tmp_cause = 'Expected pid {} to be in \'/\' cgroup, but received pid {} ' \
+            tmp_cause = "Expected pid {} to be in '/' cgroup, but received pid {} " \
                         'instead'.format(pid, cg_pid)
             cause = '\n'.join(filter(None, [cause, tmp_cause]))