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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Improve the formats test by adding progress reporting, as the test is
long.

Signed-off-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>
---
 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 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:
-- 
Regards,

Laurent Pinchart





[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux