From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Jqk4CoNS; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by passt.top (Postfix) with ESMTPS id 310A65A0265 for ; Sat, 20 Jun 2026 22:07:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1781986054; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4tcahd15lrWfBd8m02MBVUfv+0hBf7vLbk9Osr6PzrM=; b=Jqk4CoNSf8nG4X/nR+K6MHhdr41+bToA5FNP3Kp+LGW+4huXv3pANQ43NtXVHYoeCYF3FD /9c8O6G/UMtOINqs3Ou6NLY+SkljUhvHWlaNO6S83/RFETnk2fD8nth8xAUtfkV5KqALOZ /VDKLIeW/fmUYTzhm8mXFLLaqb7UWKY= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-610-gs1DWOqjP4KrNSQ1x4ukvQ-1; Sat, 20 Jun 2026 16:07:32 -0400 X-MC-Unique: gs1DWOqjP4KrNSQ1x4ukvQ-1 X-Mimecast-MFC-AGG-ID: gs1DWOqjP4KrNSQ1x4ukvQ_1781986051 Received: from mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.95]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 3DD99195605C; Sat, 20 Jun 2026 20:07:31 +0000 (UTC) Received: from jmaloy-thinkpadp16vgen1.rmtcaqc.csb (unknown [10.22.88.44]) by mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 6CEE81624; Sat, 20 Jun 2026 20:07:29 +0000 (UTC) From: Jon Maloy 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 Message-ID: <20260620200728.1720190-1-jmaloy@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.6 on 10.30.177.95 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: NCVYQ9USO6gJznWiVsy5ciLNmINjSdNufWiBjakESHI_1781986051 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true Message-ID-Hash: WOLRGHWHGZB7DN6C3PASJXP2RM3ZHT4D X-Message-ID-Hash: WOLRGHWHGZB7DN6C3PASJXP2RM3ZHT4D X-MailFrom: jmaloy@redhat.com 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 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: 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 --- 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