summaryrefslogtreecommitdiff
path: root/tests/kmstest.py
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-06-19 03:09:09 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-06-19 12:05:07 +0300
commitf4f5e930412a007b9f862024cccede416da8b2d9 (patch)
treef466ccc59329a49ecab7a2a6156420e477ef8ea2 /tests/kmstest.py
parent7e89c26cd015d8fb48202d327bb550d1f70cbb38 (diff)
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 <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Diffstat (limited to 'tests/kmstest.py')
-rwxr-xr-xtests/kmstest.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/kmstest.py b/tests/kmstest.py
index 336e31a..8a483d7 100755
--- a/tests/kmstest.py
+++ b/tests/kmstest.py
@@ -364,6 +364,12 @@ class KMSTest(object):
else:
return req.commit(0)
+ def output_connectors(self):
+ for connector in self.card.connectors:
+ if connector.fullname.startswith('writeback-'):
+ continue
+ yield connector
+
def __handle_page_flip(self, frame, time):
self.flips += 1
try: