Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions framework/python/src/common/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ def get_reports(self):

def remove_report(self, timestamp: datetime):
for report in self.reports:
if report.get_started() == timestamp:
if report.get_started().strftime('%Y-%m-%dT%H:%M:%S') == timestamp:
self.reports.remove(report)
break
return

def to_dict(self):
"""Returns the device as a python dictionary. This is used for the
Expand Down
1 change: 1 addition & 0 deletions framework/python/src/core/testrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ def delete_report(self, device: Device, timestamp):
if report_folder == timestamp:
shutil.rmtree(os.path.join(reports_folder, report_folder))
device.remove_report(timestamp)
LOGGER.debug('Successfully deleted the report')
return True

return False
Expand Down