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-modeset.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'tests/kms-test-modeset.py') diff --git a/tests/kms-test-modeset.py b/tests/kms-test-modeset.py index 0dbe67f..a6ba61c 100755 --- a/tests/kms-test-modeset.py +++ b/tests/kms-test-modeset.py @@ -9,15 +9,15 @@ class ModeSetTest(kmstest.KMSTest): """Test mode setting on all connectors in sequence with the default mode.""" def handle_page_flip(self, frame, time): - self.logger.log("Page flip complete") + self.logger.log('Page flip complete') def main(self): for connector in self.output_connectors(): - self.start("atomic mode set on connector %s" % connector.fullname) + self.start('atomic mode set 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 @@ -33,28 +33,28 @@ class ModeSetTest(kmstest.KMSTest): try: mode = connector.get_default_mode() except ValueError: - self.skip("no mode available") + self.skip('no mode available') continue - 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 a mode set ret = self.atomic_crtc_mode_set(crtc, connector, mode, fb) if ret < 0: - self.fail("atomic mode set failed with %d" % ret) + self.fail('atomic mode set failed with %d' % ret) continue - self.logger.log("Atomic mode set complete") + self.logger.log('Atomic mode set complete') self.run(5) self.atomic_crtc_disable(crtc) if self.flips == 0: - self.fail("Page flip not registered") + self.fail('Page flip not registered') else: self.success() -- cgit v1.2.3