Skip to content

Commit

Permalink
squash: Fix log file paths for beakerlib tests
Browse files Browse the repository at this point in the history
Should be relative, not absolute when stored into `results.yaml`

old: data/guest/default-0/test/beakerlib/bad-1/output.txt
new: /var/tmp/tmt/run-059/plan/beakerlib/execute/data/guest/default-0/test/beakerlib/bad-1/output.txt

Regression discovered by `/tests/execute/basic`.
  • Loading branch information
psss committed Jan 12, 2024
1 parent 7b88f01 commit aff4962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tmt/frameworks/beakerlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def extract_results(
log: list[Path] = []
for filename in [tmt.steps.execute.TEST_OUTPUT_FILENAME, 'journal.txt']:
if (invocation.path / filename).is_file():
log.append(invocation.path / filename)
log.append(invocation.relative_path / filename)

# Check beakerlib log for the result
beakerlib_results_filepath = invocation.path / 'TestResults'
Expand Down

0 comments on commit aff4962

Please sign in to comment.