[tools] tester: Sort test reports for JSON/YAML

Chris Johns chrisj at rtems.org
Sun Aug 7 23:53:36 UTC 2022


OK

I was also looking at sorting the tests in summary but for some reason I could
not get it to work as I expected. I am still looking into it.

Chris

On 6/8/2022 12:42 am, Sebastian Huber wrote:
> This makes the reports more git friendly.
> 
> Update 4671.
> ---
>  tester/rt/test.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tester/rt/test.py b/tester/rt/test.py
> index 9549765..2b5ad85 100644
> --- a/tester/rt/test.py
> +++ b/tester/rt/test.py
> @@ -248,7 +248,7 @@ def results_to_data(args, reports, start_time, end_time):
>          run_data['arch'] = run['bsp_arch']
>          reports_data.append(run_data)
>  
> -    data['reports'] = reports_data
> +    data['reports'] = sorted(reports_data, key=lambda x: x["executable"])
>      return data
>  
>  


More information about the devel mailing list