changeset 52023:daeb85ebee48

run-test: add regular line break and test count in the dot output This will make it simpler to follow the actual progress. The value "75" have been picked as it is smaller or equal to 80 and give a nice round number.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 12 Oct 2024 03:07:52 +0200
parents 71658f79758a
children baf9e3a8fd14
files tests/run-tests.py
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Fri Oct 11 14:37:59 2024 +0200
+++ b/tests/run-tests.py	Sat Oct 12 03:07:52 2024 +0200
@@ -2298,6 +2298,7 @@
         # sense to map it into skip some day.
         self.ignored = []
 
+        self._dot_printed = 0
         self.times = []
         self._firststarttime = None
         # Data stored for the benefit of generating xunit reports.
@@ -2321,6 +2322,9 @@
         """write an item of the "dot" progress"""
         formated = highlight_progress(progress, self.color)
         self.stream.write(formated)
+        self._dot_printed += 1
+        if not self._dot_printed % 75:
+            self.stream.write(f' [{self._dot_printed}]\n'.rjust(8))
         self.stream.flush()
 
     def onStart(self, test):
@@ -2514,7 +2518,7 @@
         loadtest=None,
         showchannels=False,
         *args,
-        **kwargs
+        **kwargs,
     ):
         """Create a new instance that can run tests with a configuration.
 
@@ -3676,7 +3680,7 @@
             usechg=bool(self.options.with_chg or self.options.chg),
             chgdebug=self.options.chg_debug,
             useipv6=useipv6,
-            **kwds
+            **kwds,
         )
         t.should_reload = True
         return t