diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-06-10 02:04:30 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-06-29 21:08:20 +0300 |
commit | dcbc93a117b0efaa0e42fa6359eed4a71a9ca341 (patch) | |
tree | 379be9c16ed92d03574023282dec7347ce4f0792 /tests/kms-test-routing.py | |
parent | f4cc3b79980c4d9b5a4485f38e354b62811dd52c (diff) |
tests: Convert to formatted string literals
Use formatted string literals to replace legacy printf-style string
formatting.
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-x | tests/kms-test-routing.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/kms-test-routing.py b/tests/kms-test-routing.py index 69f8be1..68aff9c 100755 --- a/tests/kms-test-routing.py +++ b/tests/kms-test-routing.py @@ -64,10 +64,10 @@ class RoutingTest(kmstest.KMSTest): fb = pykms.DumbFramebuffer(self.card, max_hdisplay, max_vdisplay, 'XR24') pykms.draw_test_pattern(fb) - self.start('Moving connector %s between CRTCs %s' % \ - (shared_connector.fullname, [pipe.crtc.id for pipe in pipes])) + self.start(f'Moving connector {shared_connector.fullname} ' + f'between CRTCs {[pipe.crtc.id for pipe in pipes]}') - self.logger.log('Highest display resolution: %ux%u' % (max_hdisplay, max_vdisplay)) + self.logger.log(f'Highest display resolution: {max_hdisplay}x{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(f'CRTC {pipe.crtc.id} to connector {pipe.connector.fullname}') self.logger.log('Routing ' + ', '.join(route)) ret = req.commit_sync(True) if ret < 0: - self.fail('atomic commit failed with %d' % ret) + self.fail(f'atomic commit failed with {ret}') return time.sleep(5) |