From f4cc3b79980c4d9b5a4485f38e354b62811dd52c Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 10 Jun 2022 01:14:59 +0300 Subject: tests: Replace double quotes with single quotes The code base mixes single and double quotes. Standardize on single quotes except for triple-quoted strings (to match the PEP8 coding style) and where the string contains single quotes to avoid the need to escape them. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- tests/kms-test-routing.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/kms-test-routing.py') diff --git a/tests/kms-test-routing.py b/tests/kms-test-routing.py index 806adb8..69f8be1 100755 --- a/tests/kms-test-routing.py +++ b/tests/kms-test-routing.py @@ -49,7 +49,7 @@ class RoutingTest(kmstest.KMSTest): break if not shared_connector: - self.skip("No suitable connector") + self.skip('No suitable connector') return # Allocate planes for each CRTC. @@ -61,13 +61,13 @@ class RoutingTest(kmstest.KMSTest): pool = [(elem[0], [p for p in elem[1] if p != pipe.plane]) for elem in pool[:-1]] # Create a framebuffer big enough for all connectors. - fb = pykms.DumbFramebuffer(self.card, max_hdisplay, max_vdisplay, "XR24") + fb = pykms.DumbFramebuffer(self.card, max_hdisplay, max_vdisplay, 'XR24') pykms.draw_test_pattern(fb) - self.start("Moving connector %s between CRTCs %s" % \ + self.start('Moving connector %s between CRTCs %s' % \ (shared_connector.fullname, [pipe.crtc.id for pipe in pipes])) - self.logger.log("Highest display resolution: %ux%u" % (max_hdisplay, max_vdisplay)) + self.logger.log('Highest display resolution: %ux%u' % (max_hdisplay, max_vdisplay)) for master_pipe in pipes: req = kmstest.AtomicRequest(self) @@ -97,13 +97,13 @@ class RoutingTest(kmstest.KMSTest): 'CRTC_H': mode.vdisplay, }) - route.append("CRTC %u to connector %s" % (pipe.crtc.id, pipe.connector.fullname)) + route.append('CRTC %u to connector %s' % (pipe.crtc.id, pipe.connector.fullname)) - self.logger.log("Routing " + ", ".join(route)) + self.logger.log('Routing ' + ', '.join(route)) ret = req.commit_sync(True) if ret < 0: - self.fail("atomic commit failed with %d" % ret) + self.fail('atomic commit failed with %d' % ret) return time.sleep(5) -- cgit v1.2.3