Skip to content

Commit

Permalink
Updates the environment variables in out-of-session test.
Browse files Browse the repository at this point in the history
This way we avoid TestingFarm to set the old values.

Signed-off-by: mcasquer <[email protected]>
  • Loading branch information
mcasquer committed Nov 6, 2024
1 parent d2e180b commit b55235a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/execute/reboot/out-of-session.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ rlJournalStart
rlRun "PROVISION_HOW=${PROVISION_HOW:-container}"

# To allow running the test outside of tmt.
rlRun "TMT_TEST_PIDFILE_ROOT=${TMT_TEST_PIDFILE_ROOT:-/var/tmp/tmt/pid}"
rlRun "TMT_TEST_PIDFILE=${TMT_TEST_PIDFILE:-$TMT_TEST_PIDFILE_ROOT/tmt-test.pid}"
rlRun "TMT_TEST_PIDFILE_LOCK=${TMT_TEST_PIDFILE_LOCK:-$TMT_TEST_PIDFILE.lock}"
rlRun "TMT_TEST_PIDFILE_ROOT=/var/tmp/tmt/pid"
rlRun "TMT_TEST_PIDFILE=$TMT_TEST_PIDFILE_ROOT/tmt-test.pid"
rlRun "TMT_TEST_PIDFILE_LOCK=$TMT_TEST_PIDFILE.lock"

rlRun "run=\$(mktemp -d -p /var/tmp)" 0 "Create run directory"
rlRun "set -o pipefail"
Expand Down

0 comments on commit b55235a

Please sign in to comment.