diff --git a/framework/python/src/common/testreport.py b/framework/python/src/common/testreport.py index 6cfeef156..a213fd7c4 100644 --- a/framework/python/src/common/testreport.py +++ b/framework/python/src/common/testreport.py @@ -269,6 +269,10 @@ def from_json(self, json_file): self.add_test(test_case) + def to_json_updated(self, device): + self.update_device_info(device) + return self.to_json() + # Create a pdf file in memory and return the bytes def to_pdf(self): # Resolve the data as html first diff --git a/framework/python/src/core/session.py b/framework/python/src/core/session.py index 43918cecd..d873a94a4 100644 --- a/framework/python/src/core/session.py +++ b/framework/python/src/core/session.py @@ -535,7 +535,10 @@ def get_all_reports(self): for device in self.get_device_repository(): device_reports = device.get_reports() reports.extend( - [device_report.to_json() for device_report in device_reports] + [ + device_report.to_json_updated(device) + for device_report in device_reports + ] ) return sorted(reports, key=lambda report: report['started'], reverse=True)