[PATCH v3] run-tests: also color the summary messages (skipped, failed...)

Yuya Nishihara yuya at tcha.org
Tue Jul 18 09:19:00 EDT 2017


On Tue, 18 Jul 2017 07:33:50 +0900, mlaneuville at gmail.com wrote:
> # HG changeset patch
> # User Matthieu Laneuville <matthieu.laneuville at octobus.net>
> # Date 1500330427 -32400
> #      Tue Jul 18 07:27:07 2017 +0900
> # Node ID 14c07f0460918fe57b1c2709fe3ea3f071a95659
> # Parent  7f5f97697162331b5acf78aef091ae3fd341e308
> run-tests: also color the summary messages (skipped, failed...)

Queued, thanks.

> @@ -1587,7 +1621,14 @@
>                      self.stream.write('t')
>                  else:
>                      if not self._options.nodiff:
> -                        self.stream.write('\nERROR: %s output changed\n' % test)
> +                        formatted = '\nERROR: %s output changed\n' % test
> +                        if with_color and pygmentspresent:

Perhaps "pygmentspresent" wouldn't be necessary because you made it tested
beforehand.


More information about the Mercurial-devel mailing list