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

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Aug 5 14:42:26 UTC 2022


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



More information about the devel mailing list