summaryrefslogtreecommitdiff
path: root/tests/kms-test-routing.py
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-06-10 01:14:59 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-06-29 21:08:18 +0300
commitf4cc3b79980c4d9b5a4485f38e354b62811dd52c (patch)
treeb955031c87719a7f46fc1269601dcd53751eff08 /tests/kms-test-routing.py
parent322821a1381f81c4dd480d065bec13803c7e69dc (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-routing.py')
-rwxr-xr-xtests/kms-test-routing.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/kms-test-routing.py b/tests/kms-test-routing.py
index 806adb8..69f8be1 100755
--- a/tests/kms-test-routing.py
+++ b/tests/kms-test-routing.py
@@ -49,7 +49,7 @@ class RoutingTest(kmstest.KMSTest):
break
if not shared_connector:
- self.skip("No suitable connector")
+ self.skip('No suitable connector')
return
# Allocate planes for each CRTC.
@@ -61,13 +61,13 @@ class RoutingTest(kmstest.KMSTest):
pool = [(elem[0], [p for p in elem[1] if p != pipe.plane]) for elem in pool[:-1]]
# Create a framebuffer big enough for all connectors.
- fb = pykms.DumbFramebuffer(self.card, max_hdisplay, max_vdisplay, "XR24")
+ fb = pykms.DumbFramebuffer(self.card, max_hdisplay, max_vdisplay, 'XR24')
pykms.draw_test_pattern(fb)
- self.start("Moving connector %s between CRTCs %s" % \
+ self.start('Moving connector %s between CRTCs %s' % \
(shared_connector.fullname, [pipe.crtc.id for pipe in pipes]))
- self.logger.log("Highest display resolution: %ux%u" % (max_hdisplay, max_vdisplay))
+ self.logger.log('Highest display resolution: %ux%u' % (max_hdisplay, max_vdisplay))
for master_pipe in pipes:
req = kmstest.AtomicRequest(self)
@@ -97,13 +97,13 @@ class RoutingTest(kmstest.KMSTest):
'CRTC_H': mode.vdisplay,
})
- route.append("CRTC %u to connector %s" % (pipe.crtc.id, pipe.connector.fullname))
+ route.append('CRTC %u to connector %s' % (pipe.crtc.id, pipe.connector.fullname))
- self.logger.log("Routing " + ", ".join(route))
+ self.logger.log('Routing ' + ', '.join(route))
ret = req.commit_sync(True)
if ret < 0:
- self.fail("atomic commit failed with %d" % ret)
+ self.fail('atomic commit failed with %d' % ret)
return
time.sleep(5)