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-formats.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-formats.py')
-rwxr-xr-x | tests/kms-test-formats.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/kms-test-formats.py b/tests/kms-test-formats.py index 86f1651..ce84943 100755 --- a/tests/kms-test-formats.py +++ b/tests/kms-test-formats.py @@ -10,12 +10,12 @@ class FormatsTest(kmstest.KMSTest): """Test all available plane formats.""" def main(self): - self.start("plane formats") + self.start('plane formats') # Find a CRTC with a connected connector and at least one plane for connector in self.output_connectors(): if not connector.connected(): - self.skip("unconnected connector") + self.skip('unconnected connector') continue try: @@ -34,10 +34,10 @@ class FormatsTest(kmstest.KMSTest): break else: - self.skip("no CRTC available with connector") + self.skip('no CRTC available with connector') return - self.logger.log("Testing connector %s, CRTC %u, mode %s" % \ + self.logger.log('Testing connector %s, CRTC %u, mode %s' % \ (connector.fullname, crtc.id, mode.name)) failed = 0 @@ -46,14 +46,14 @@ class FormatsTest(kmstest.KMSTest): for i in range(num_formats): format = crtc.primary_plane.formats[i] - self.logger.log("Testing format %s" % format) + self.logger.log('Testing format %s' % format) self.progress(i+1, num_formats) # Create a frame buffer try: fb = pykms.DumbFramebuffer(self.card, mode.hdisplay, mode.vdisplay, format) except ValueError: - self.logger.log("Failed to create frame buffer") + self.logger.log('Failed to create frame buffer') failed += 1 continue @@ -62,7 +62,7 @@ class FormatsTest(kmstest.KMSTest): # Set the mode with a primary plane ret = self.atomic_crtc_mode_set(crtc, connector, mode, fb) if ret < 0: - self.logger.log("atomic mode set failed with %d" % ret) + self.logger.log('atomic mode set failed with %d' % ret) failed += 1 continue @@ -71,7 +71,7 @@ class FormatsTest(kmstest.KMSTest): self.atomic_crtc_disable(crtc) if failed: - self.fail("%s/%s formats failed" % (failed, num_formats)) + self.fail('%s/%s formats failed' % (failed, num_formats)) else: self.success() |