diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-08-06 04:57:30 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-08-08 01:40:50 +0300 |
commit | 9cdb3606e9d36d023cb6ddabad6c7758088ce10f (patch) | |
tree | 43f01da41c526654028d08ff80f320c142ed68fc /tests | |
parent | 2b8ccf53eefc9155cabf0460583599e1dab65eec (diff) |
tests: formats: Add progress reporting
Improve the formats test by adding progress reporting, as the test is
long.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/kms-test-formats.py | 6 |
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: |