[rtems-tools commit] tester: Sort test reports for JSON/YAML
Sebastian Huber
sebh at rtems.org
Mon Aug 8 04:34:24 UTC 2022
Module: rtems-tools
Branch: master
Commit: 1cd476e155b3bb236b9bf5f79614cdced8d416a0
Changeset: http://git.rtems.org/rtems-tools/commit/?id=1cd476e155b3bb236b9bf5f79614cdced8d416a0
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Aug 5 16:39:55 2022 +0200
tester: Sort test reports for JSON/YAML
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 vc
mailing list