Skip to content

Commit

Permalink
squash: fix tests and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
happz committed Oct 30, 2023
1 parent 2fbbdf4 commit 92f9d0b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions docs/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -486,9 +486,11 @@ TMT_TEST_PIDFILE, TMT_TEST_PIDFILE_LOCK
making any changes to the pid file.

TMT_TEST_PIDFILE_ROOT
By default, the test pidfile file is stored in the ``$TMT_WORKDIR_ROOT``
By default, the test pidfile file is stored in ``/var/tmp``
directory. If specified, the directory in this variable would be
used instead.
used instead. The directory permissions should follow the pattern
of temporary directory permissions, e.g. ``chmod 1777``, to
allow access to users with all privilege levels.

Plugin Variables
----------------
Expand Down
2 changes: 1 addition & 1 deletion tests/execute/reboot/out-of-session.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ rlJournalStart
# and use it to issue a `tmt-reboot` from outside the direct process tree of the test.
set -x

tmt_reboot_command="export TMT_TEST_PIDFILE=/var/tmp/tmt/tmt-test.pid; export TMT_TEST_PIDFILE_LOCK=/var/tmp/tmt/tmt-test.pid.lock; export TMT_DEBUG=1; tmt-reboot"
tmt_reboot_command="export TMT_TEST_PIDFILE=/var/tmp/tmt-test.pid; export TMT_TEST_PIDFILE_LOCK=/var/tmp/tmt-test.pid.lock; export TMT_DEBUG=1; tmt-reboot"

if [ "$method" = "container" ]; then
podman_exec="$(sed -nr 's/\s*Run command: (podman exec .*) \/bin\/bash.*cd.*/\1/p' tmt.output)"
Expand Down
2 changes: 1 addition & 1 deletion tmt/steps/execute/scripts/tmt-reboot
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

[ -n "$TMT_DEBUG" ] && set -x

TMT_TEST_PIDFILE_LOCK="${TMT_TEST_PIDFILE_LOCK:-/var/tmp/tmt/tmt-test.pid}"
TMT_TEST_PIDFILE_LOCK="${TMT_TEST_PIDFILE_LOCK:-/var/tmp/tmt-test.pid}"

PATH=/sbin:/usr/sbin:$PATH

Expand Down
2 changes: 1 addition & 1 deletion tmt/steps/execute/scripts/tmt-reboot-core
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[ -n "$TMT_DEBUG" ] && set -x

TMT_TEST_PIDFILE="${TMT_TEST_PIDFILE:-/var/tmp/tmt/tmt-test.pid}"
TMT_TEST_PIDFILE="${TMT_TEST_PIDFILE:-/var/tmp/tmt-test.pid}"

if [ ! -e "$TMT_TEST_PIDFILE" ]; then
echo "There is no running test to signal the reboot to!"
Expand Down

0 comments on commit 92f9d0b

Please sign in to comment.