From: Jon Maloy <jmaloy@redhat.com>
To: sbrivio@redhat.com, david@gibson.dropbear.id.au,
jmaloy@redhat.com, passt-dev@passt.top
Subject: [PATCH] test/lib: Pre-create context log files before starting tail
Date: Sat, 20 Jun 2026 16:07:28 -0400 [thread overview]
Message-ID: <20260620200728.1720190-1-jmaloy@redhat.com> (raw)
pane_watch_contexts() starts tail -f --retry on context log files,
but those files may not exist yet when tail starts, resulting in
error messages in the tmux pane. Pre-create them with touch so
tail can open them immediately.
Signed-off-by: Jon Maloy <jmaloy@redhat.com>
---
test/lib/term | 1 +
1 file changed, 1 insertion(+)
diff --git a/test/lib/term b/test/lib/term
index 2d2d2182..23639e34 100755
--- a/test/lib/term
+++ b/test/lib/term
@@ -252,6 +252,7 @@ pane_watch_contexts() {
tmux select-pane -t ${__pane_number} -T "${__desc}"
__cmd="tail -f --retry"
for c; do
+ touch "${LOGDIR}/context_${c}.log"
__cmd="${__cmd} ${LOGDIR}/context_${c}.log"
done
cmd_write ${__pane_number} "${__cmd}"
--
2.52.0
next reply other threads:[~2026-06-20 20:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-20 20:07 Jon Maloy [this message]
2026-06-21 1:15 ` David Gibson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260620200728.1720190-1-jmaloy@redhat.com \
--to=jmaloy@redhat.com \
--cc=david@gibson.dropbear.id.au \
--cc=passt-dev@passt.top \
--cc=sbrivio@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).