diff --git a/tmt/steps/report/reportportal.py b/tmt/steps/report/reportportal.py index c8877cae5c..8b779b05c5 100644 --- a/tmt/steps/report/reportportal.py +++ b/tmt/steps/report/reportportal.py @@ -400,8 +400,9 @@ def go(self, *, logger: Optional[tmt.log.Logger] = None) -> None: # Support for idle tests executed = bool(self.step.plan.execute.results()) if executed: - # launch time should be the earliest start time of all plans - # TODO: Does the 'min' work with datetime isoformat correctly? + # Launch time should be the earliest start time of all plans. The minimum over datetime + # strings will work, because the datetime in ISO format is designed to be + # lexicographically sortable. launch_time = min([r.start_time or self.datetime for r in self.step.plan.execute.results()])