[Piglit] [PATCH 2/6] dmesg.py: fix indents which are 8 space but should be 4

Vinson Lee vlee at freedesktop.org
Mon Nov 23 23:40:13 PST 2015


On Mon, Nov 23, 2015 at 10:01 PM,  <baker.dylan.c at gmail.com> wrote:
> From: Dylan Baker <baker.dylan.c at gmail.com>
>
> Trivial.
>
> Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
> ---
>  framework/dmesg.py | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/framework/dmesg.py b/framework/dmesg.py
> index daeeeae..1982dec 100644
> --- a/framework/dmesg.py
> +++ b/framework/dmesg.py
> @@ -168,9 +168,9 @@ class LinuxDmesg(BaseDmesg):
>          # First check to see if we can find the live kernel config.
>          try:
>              with gzip.open("/proc/config.gz", 'r') as f:
> -                    for line in f:
> -                            if line.startswith("CONFIG_PRINTK_TIME=y"):
> -                                    return
> +                for line in f:
> +                    if line.startswith("CONFIG_PRINTK_TIME=y"):
> +                        return
>          # If there is a malformed or missing file, just ignore it and try the
>          # regex match (which may not exist if dmesg ringbuffer was cleared).
>          except Exception:
> --
> 2.6.2
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit

Reviewed-by: Vinson Lee <vlee at freedesktop.org>


More information about the Piglit mailing list