diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2022-09-13 14:35:20 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-09-13 11:12:41 +0200 |
commit | e4ecb6d795ef10d26a89e195c23a43bf524e5a41 (patch) | |
tree | a32f564d334e9e026a6ac8088f5d25a2a20ceda3 /test/lib/term | |
parent | 8cb7d5b461f0fc7c49fcb5cd6b0ce8dfcb15fce8 (diff) | |
download | passt-e4ecb6d795ef10d26a89e195c23a43bf524e5a41.tar passt-e4ecb6d795ef10d26a89e195c23a43bf524e5a41.tar.gz passt-e4ecb6d795ef10d26a89e195c23a43bf524e5a41.tar.bz2 passt-e4ecb6d795ef10d26a89e195c23a43bf524e5a41.tar.lz passt-e4ecb6d795ef10d26a89e195c23a43bf524e5a41.tar.xz passt-e4ecb6d795ef10d26a89e195c23a43bf524e5a41.tar.zst passt-e4ecb6d795ef10d26a89e195c23a43bf524e5a41.zip |
test: Move passt_test_log_pipe to state directory
We use this fifo to send messages to the information pane. Put it in the
state directory so it doesn't need its own cleanup.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'test/lib/term')
-rwxr-xr-x | test/lib/term | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/lib/term b/test/lib/term index 8b8ad56..9a3ef7f 100755 --- a/test/lib/term +++ b/test/lib/term @@ -31,7 +31,7 @@ PR_DELAY_INIT=100 # ms # $@: Message to print info() { tmux select-pane -t ${PANE_INFO} - echo "${@}" >> /tmp/.passt_test_log_pipe + echo "${@}" >> $STATEBASE/log_pipe echo "${@}" >> "${LOGFILE}" } @@ -39,7 +39,7 @@ info() { # $@: Message to print info_n() { tmux select-pane -t ${PANE_INFO} - printf "${@}" >> /tmp/.passt_test_log_pipe + printf "${@}" >> $STATEBASE/log_pipe printf "${@}" >> "${LOGFILE}" } @@ -47,7 +47,7 @@ info_n() { # $@: Message to print info_nolog() { tmux select-pane -t ${PANE_INFO} - echo "${@}" >> /tmp/.passt_test_log_pipe + echo "${@}" >> $STATEBASE/log_pipe } # info_nolog() - Print message to log file @@ -365,7 +365,7 @@ status_test_start() { info_check() { switch_pane ${PANE_INFO} - printf "${PR_YELLOW}?${PR_NC} ${@}" >> /tmp/.passt_test_log_pipe + printf "${PR_YELLOW}?${PR_NC} ${@}" >> $STATEBASE/log_pipe printf "? ${@}" >> "${LOGFILE}" } @@ -373,7 +373,7 @@ info_check() { info_check_passed() { switch_pane ${PANE_INFO} - printf "\n" >> /tmp/.passt_test_log_pipe + printf "\n" >> $STATEBASE/log_pipe printf "\n" >> ${LOGFILE} } @@ -381,7 +381,7 @@ info_check_passed() { info_check_failed() { switch_pane ${PANE_INFO} - printf " ${PR_RED}!${PR_NC}\n" >> /tmp/.passt_test_log_pipe + printf " ${PR_RED}!${PR_NC}\n" >> $STATEBASE/log_pipe printf " < failed.\n" >> "${LOGFILE}" } |