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-modes.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'tests/kms-test-modes.py') diff --git a/tests/kms-test-modes.py b/tests/kms-test-modes.py index b298a19..433bb0b 100755 --- a/tests/kms-test-modes.py +++ b/tests/kms-test-modes.py @@ -9,35 +9,35 @@ class ModesTest(kmstest.KMSTest): """Test all available modes on all available connectors.""" def handle_page_flip(self, frame, time): - self.logger.log("Page flip complete") + self.logger.log('Page flip complete') def test_mode(self, connector, crtc, mode): - self.logger.log("Testing connector %s on CRTC %u with mode %s" % \ + self.logger.log('Testing connector %s on CRTC %u with mode %s' % \ (connector.fullname, crtc.id, mode.name)) # Create a frame buffer - fb = pykms.DumbFramebuffer(self.card, mode.hdisplay, mode.vdisplay, "XR24") + fb = pykms.DumbFramebuffer(self.card, mode.hdisplay, mode.vdisplay, 'XR24') pykms.draw_test_pattern(fb) # Perform the mode set ret = self.atomic_crtc_mode_set(crtc, connector, mode, fb) if ret < 0: - raise RuntimeError("atomic mode set failed with %d" % ret) + raise RuntimeError('atomic mode set failed with %d' % ret) - self.logger.log("Atomic mode set complete") + self.logger.log('Atomic mode set complete') self.run(4) self.atomic_crtc_disable(crtc) if self.flips == 0: - raise RuntimeError("Page flip not registered") + raise RuntimeError('Page flip not registered') def main(self): for connector in self.output_connectors(): - self.start("modes on connector %s" % connector.fullname) + self.start('modes on connector %s' % connector.fullname) # Skip disconnected connectors if not connector.connected(): - self.skip("unconnected connector") + self.skip('unconnected connector') continue # Find a CRTC suitable for the connector @@ -52,7 +52,7 @@ class ModesTest(kmstest.KMSTest): # Test all available modes modes = connector.get_modes() if len(modes) == 0: - self.skip("no mode available") + self.skip('no mode available') continue for i in range(len(modes)): -- cgit v1.2.3