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-formats.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/kms-test-formats.py') 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() -- cgit v1.2.3