Skip to content

Commit

Permalink
Fix log paths for subresults loaded from tmt-report-results.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
seberm committed Nov 19, 2024
1 parent 72ca860 commit c46a241
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tmt/steps/execute/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,12 @@ def _load_tmt_report_results_file(self, invocation: TestInvocation) -> ResultCol
collection.file_exists = True
collection.results = tmt.utils.yaml_to_list(results_path.read_text())

# Fix log paths created by `tmt-report-result` on the guest the same way as it's done for
# partial results
for result in collection.results:
result["log"] = [
invocation.relative_test_data_path / Path(log) for log in result.get("log", [])]

return collection

def _process_results_partials(
Expand Down

0 comments on commit c46a241

Please sign in to comment.