diff mbox series

[2/3] tests: formats: Add progress reporting

Message ID 20200806022802.22813-3-laurent.pinchart@ideasonboard.com (mailing list archive)
State New
Delegated to: Kieran Bingham
Headers show
Series kms-tests: Small fixes and enhancements | expand

Commit Message

Laurent Pinchart Aug. 6, 2020, 2:28 a.m. UTC
Improve the formats test by adding progress reporting, as the test is
long.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 tests/kms-test-formats.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tests/kms-test-formats.py b/tests/kms-test-formats.py
index 77c9fe775a7c..93075561a843 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: