From f4f5e930412a007b9f862024cccede416da8b2d9 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Wed, 19 Jun 2019 03:09:09 +0300 Subject: kmstest.py: Add output_connectors() helper to skip writeback connectors Add a generator method to the KMSTest class to enumerate all non-writeback connectors, and use it through tests. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- tests/kms-test-formats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/kms-test-formats.py') diff --git a/tests/kms-test-formats.py b/tests/kms-test-formats.py index ae89bb5..15e6f59 100755 --- a/tests/kms-test-formats.py +++ b/tests/kms-test-formats.py @@ -11,7 +11,7 @@ class FormatsTest(kmstest.KMSTest): self.start("plane formats") # Find a CRTC with a connected connector and at least one plane - for connector in self.card.connectors: + for connector in self.output_connectors(): if not connector.connected(): self.skip("unconnected connector") continue -- cgit v1.2.3