tester: Sort test reports for JSON/YAML

This makes the reports more git friendly.

Update 4671.
This commit is contained in:
Sebastian Huber
2022-08-05 16:39:55 +02:00
parent ace7db96d4
commit 1cd476e155

View File

@@ -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