# HG changeset patch # User Pierre-Yves David # Date 1728695272 -7200 # Node ID daeb85ebee485a10a077dcb05c5b14ed620c78a2 # Parent 71658f79758a7c6a0d22b204a3a281e0de68882a 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. diff -r 71658f79758a -r daeb85ebee48 tests/run-tests.py --- 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