diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-06-10 01:14:59 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-06-29 21:08:18 +0300 |
commit | f4cc3b79980c4d9b5a4485f38e354b62811dd52c (patch) | |
tree | b955031c87719a7f46fc1269601dcd53751eff08 /tests/kms-test-modeset.py | |
parent | 322821a1381f81c4dd480d065bec13803c7e69dc (diff) |
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 <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'tests/kms-test-modeset.py')
-rwxr-xr-x | tests/kms-test-modeset.py | 18 |
1 files changed, 9 insertions, 9 deletions
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() |