From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: passt.top; dkim=pass (2048-bit key; secure) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.a=rsa-sha256 header.s=202606 header.b=KYSYmRB8; dkim-atps=neutral Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id 2415D5A0265 for ; Sun, 21 Jun 2026 03:16:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202606; t=1782004597; bh=LKYczTyWQmYVNTCFHKMQc2BLRzWo0oua6e1Cf+8zgn4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KYSYmRB8eVXutAmweSU4ewV2pEWKjSJ4LP4Xx/zkhV4wYQ68t1SEzSMdvuwJEkYPs zm2rlGbbzm1m1wW4HNMtGHuZe9U2qdODemQo6EJZIDVGVLDrk8CKtr7CKtyTRqs4YG Xftkrslw7Ff+rp/pIhq5TXq3n92PN6tPyW6TvOihBiaMv/J1qTpbuJRM5HzBTwSLpP p+ywB1CL1gfuj/yyfh95LcHklPjjkmJ2qbd7HIuglT66IGdLWCqpjnaRmuugbDRjbd /WqBeV8uOFAt7CrP3fF/pD15hyo/j1zGP+pyx6a3VyeLM/dMpjCrS4DOvgrAhfjirf RYK1mWeR8c7nA== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4gjYM96kGqz4wTB; Sun, 21 Jun 2026 11:16:37 +1000 (AEST) Date: Sun, 21 Jun 2026 11:15:43 +1000 From: David Gibson To: Jon Maloy Subject: Re: [PATCH] test/lib: Pre-create context log files before starting tail Message-ID: References: <20260620200728.1720190-1-jmaloy@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="wzXsqVPT46Lp0eE6" Content-Disposition: inline In-Reply-To: <20260620200728.1720190-1-jmaloy@redhat.com> Message-ID-Hash: LQ5VHVPOT7SGTEHPQ3HNPIYPPANSUW2M X-Message-ID-Hash: LQ5VHVPOT7SGTEHPQ3HNPIYPPANSUW2M X-MailFrom: dgibson@gandalf.ozlabs.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: sbrivio@redhat.com, passt-dev@passt.top X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --wzXsqVPT46Lp0eE6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jun 20, 2026 at 04:07:28PM -0400, Jon Maloy wrote: > 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. Eh, sure. But if you do this, you shouldn't need the --retry any more. >=20 > Signed-off-by: Jon Maloy > --- > test/lib/term | 1 + > 1 file changed, 1 insertion(+) >=20 > 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=3D"tail -f --retry" > for c; do > + touch "${LOGDIR}/context_${c}.log" > __cmd=3D"${__cmd} ${LOGDIR}/context_${c}.log" > done > cmd_write ${__pane_number} "${__cmd}" > --=20 > 2.52.0 >=20 --=20 David Gibson (he or they) | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you, not the other way | around. http://www.ozlabs.org/~dgibson --wzXsqVPT46Lp0eE6 Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEO+dNsU4E3yXUXRK2zQJF27ox2GcFAmo3OyYACgkQzQJF27ox 2Gf8kw/8DUQFOUy0wb7Df+NUzx6JOBSN1fsU8B6Om4caYyBgbz84MLfNQU8ypOsG /i9tHfmV7gis2HiQQrS1O7861Wcjzj3kcTwIhQrz3T7u0UkaEnbhrrhgdK/ViVkR iRhqKOa2bPpzu8dGmRSsZLj6di+L9Fq/1K0uHi9lF7WEDLvxIJ0Pm/xTm/yOk5e0 FrE/PNSD+VSrXe6UQOA02idZPC8M7aEmCBzRZa9suI506+hQnGu1TEQThWHrfODU xL6c34gbYu2/AutcG/K13+licJdSIFsjB2kCaSnJl3yZ/7fahSx9SSuZHzba17oH WqPzszlE1xwSLerehnJx9ZS7M7MMvRms7oi3NZQVh1SkaFLw53p2R5ttkkwkAijd gD4yuE3iGqmCcNKuxE5b5hYFaZQIcVL2/dgEaLomNZexwhKkAeO0wAaw3qBQoeLp WGDOedtVqLc/lX39znqn447cfuGWvQDifg3l+jZjGJjZl2W7vnR9CRBd987x3GIf tEqejHgOapiivUXbjxBbnQ1TbV8AMidM0kN9gQ7jPBxthQjQqmdhIZ+81r9pUW6J EmLpPiACrF+Rq5OANNXdhus8PYo07Daf0TC/77vcnBxmpXxslI12nkjynZm7S7D+ Aii1l5h4Ju8LTG276/q2uKHa5EKr5KlI6ZJ7h1RwmFcDLr+TJPU= =9yxP -----END PGP SIGNATURE----- --wzXsqVPT46Lp0eE6--