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-modes.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-modes.py')
-rwxr-xr-x | tests/kms-test-modes.py | 18 |
1 files changed, 9 insertions, 9 deletions
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)): |