From 9cdb3606e9d36d023cb6ddabad6c7758088ce10f Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Thu, 6 Aug 2020 04:57:30 +0300 Subject: tests: formats: Add progress reporting Improve the formats test by adding progress reporting, as the test is long. Signed-off-by: Laurent Pinchart --- tests/kms-test-formats.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3