[igt-dev] [PATCH RFC 2/2] lib/igt_core: print card sysfs node at subtest results

Petri Latvala petri.latvala at intel.com
Wed Sep 28 09:43:20 UTC 2022


On Wed, Sep 28, 2022 at 10:58:42AM +0200, Mauro Carvalho Chehab wrote:
> From: Mauro Carvalho Chehab <mchehab at kernel.org>
> 
> This helps to identify what GPU failed on multi-GPU tests.

And completely breaks igt_runner when it tries to parse the result
logs.


-- 
Petri Latvala


> 
> Signed-off-by: Mauro Carvalho Chehab <mchehab at kernel.org>
> ---
>  lib/igt_core.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/lib/igt_core.c b/lib/igt_core.c
> index 0d018758ce38..6575eabca027 100644
> --- a/lib/igt_core.c
> +++ b/lib/igt_core.c
> @@ -1481,6 +1481,9 @@ __noreturn static void exit_subtest(const char *result)
>  
>  	igt_gettime(&now);
>  
> +	if (gpu_string)
> +		igt_info("%s: ", gpu_string);
> +
>  	igt_info("%s%s %s: %s (%.3fs)%s\n",
>  		 (!__igt_plain_output) ? "\x1b[1m" : "",
>  		 subtest_text, *subtest_name, result,
> -- 
> 2.37.3
> 


More information about the igt-dev mailing list