Skip to content

Commit

Permalink
tmt: Put back absolute log path for older tmt versions
Browse files Browse the repository at this point in the history
Commit a1fceb2 accidentally dropped setting `$LOGS` to an absolute
path if `$TMT_TEST_DATA` is not set. This causes the test to fail with

    test/browser/run-test.sh: line 75: logs/exitcode: No such file or directory

when running against older `tmt` versions. This is the case on the
internal RHEL testing farm, but not on the public Fedora/CentOS one
(which is why we didn't see this in packit).
  • Loading branch information
martinpitt committed Feb 24, 2022
1 parent 267639d commit 966f7da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/browser/browser.sh
Expand Up @@ -10,7 +10,7 @@ else
fi

# https://tmt.readthedocs.io/en/stable/overview.html#variables
LOGS="${TMT_TEST_DATA:-logs}"
LOGS="${TMT_TEST_DATA:-$(pwd)/logs}"
mkdir -p "$LOGS"
chmod a+w "$LOGS"

Expand Down

0 comments on commit 966f7da

Please sign in to comment.