summaryrefslogtreecommitdiff
path: root/tests/kms-test-formats.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/kms-test-formats.py')
-rwxr-xr-xtests/kms-test-formats.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/kms-test-formats.py b/tests/kms-test-formats.py
index 77c9fe7..9307556 100755
--- a/tests/kms-test-formats.py
+++ b/tests/kms-test-formats.py
@@ -40,8 +40,12 @@ class FormatsTest(kmstest.KMSTest):
self.logger.log("Testing connector %s, CRTC %u, mode %s" % \
(connector.fullname, crtc.id, mode.name))
- for format in crtc.primary_plane.formats:
+ num_formats = len(crtc.primary_plane.formats)
+ for i in range(num_formats):
+ format = crtc.primary_plane.formats[i]
+
self.logger.log("Testing format %s" % format)
+ self.progress(i+1, num_formats)
# Create a frame buffer
try: