[Piglit] [PATCH 2/3] framework/log.py: Use grouptools.format in verbose logger.

Glenn Kennard glenn.kennard at gmail.com
Fri Nov 20 17:54:41 PST 2015


On Sat, 21 Nov 2015 02:10:02 +0100, <baker.dylan.c at gmail.com> wrote:

> From: Dylan Baker <baker.dylan.c at gmail.com>
>
> This stops the logger from using '@', and instead prints '/'.
>
> cc: Glenn Kennard <glenn.kennard at gmail.com>
> Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
> ---
>  framework/log.py | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/framework/log.py b/framework/log.py
> index c2c3677..e80f48e 100644
> --- a/framework/log.py
> +++ b/framework/log.py
> @@ -40,6 +40,7 @@ except ImportError:
>      import json
> from framework.core import PIGLIT_CONFIG
> +from framework import grouptools
> __all__ = ['LogManager']
> @@ -213,7 +214,7 @@ class VerboseLog(QuietLog):
>          status line should.
>         """
> -        super(VerboseLog, self)._print(out)
> +        super(VerboseLog, self)._print(grouptools.format(out))
>          if newline:
>              sys.stdout.write('\n')
>              sys.stdout.flush()

Reviewed-by:
Glenn Kennard <glenn.kennard at gmail.com>


More information about the Piglit mailing list