From nobody Tue Apr 7 04:14:08 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5DC013E0244 for ; Mon, 16 Mar 2026 18:40:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773686452; cv=none; b=J/18nKXxyQwlvNLwafJqsuai0MJ2y1pdenwcoERpC9QEtfIRQgriC7d+jHp2cUPx22J7rqRc84JKKwoI8Wx7eCUQcPDFFrsWoEHhpXTyKrg8WkuADVm33CnWAGGrPYHhzHEOB0iVdwXrZdBq+j+VQUvDz1RLTKtg9umokodSXa8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773686452; c=relaxed/simple; bh=uJbyMDXF8H1WV+Bor074OuWARJwauyMBmt3wPZvh4kM=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=agmVk133s+7wu9eyX0/Jc3MmYB/h1634+pgSErB52LB+Iw06xkS+QRE43cEjdFSLXR6eWab0gY3UkmdUO2u7XyjDFut5efn01Fq87OR6XiyWHKfc4bAHM7f/9G3X7BJKX6IWD+zKpeq7jfRVlf3TJXuMHeiDz3KFaTwxjeux7hk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Si+YQQnD; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Si+YQQnD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBF4DC2BCB3; Mon, 16 Mar 2026 18:40:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773686451; bh=uJbyMDXF8H1WV+Bor074OuWARJwauyMBmt3wPZvh4kM=; h=Date:From:To:Cc:Subject:References:From; b=Si+YQQnDJpidHKocLAwgCz8jaK6dmaqbF2JG6JeNm9VHzjQQ8r/zJPYGZ72Mv7Dkd 6lAUOdqzoeBrguG5myRXjAUxUsvlaXZdFPkzm0WFZHtmyy3kHUX3VYnZc5d1azjj73 TG5u2MSVgUG9gAvnpDzJH9LH08fcHhh6WCxVyhunh0ccKEVQerVgq/pPhYsgwDpy9m snPR3XjsLl9h3vDQbs5gslvXFcCZwp1nBl6nz5+fX6vQmjQ6qgXX1iQFMfbn8PRRZP jZmdCvPsjZVMPDYEKrdZu3pLZKt9skOoX+1MpcF4pvvmojb05ZFif1wsCrK5WKv/N4 a43QoR9o79GCA== Received: from rostedt by gandalf with local (Exim 4.99.1) (envelope-from ) id 1w2CsO-0000000852T-0Dih; Mon, 16 Mar 2026 14:41:16 -0400 Message-ID: <20260316184115.909768613@kernel.org> User-Agent: quilt/0.69 Date: Mon, 16 Mar 2026 14:40:35 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: "John Warthog9 Hawley" , =?UTF-8?q?Ricardo=20B.=20Marli=C3=A8re?= , John Hawley , Andrea Righi , Marcos Paulo de Souza , Matthieu Baerts , Fernando Fernandez Mancera , Pedro Falcato Subject: [for-next][PATCH 2/9] ktest: Resolve LOG_FILE in test option context References: <20260316184033.927944169@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: =3D?UTF-8?q?Ricardo=3D20B=3D2E=3D20Marli=3DC3=3DA8re?=3D LOG_FILE is expanded immediately after the config file is parsed with eval_option(..., -1). That uses the default context, not the same option resolution path used for tests. If LOG_FILE depends on options that are finalized per test, it can be resolved from stale values before the first test starts. Resolve LOG_FILE through set_test_option("LOG_FILE", 1) instead so it uses the same expansion rules as the rest of the test options. Cc: John Hawley Cc: Andrea Righi Cc: Marcos Paulo de Souza Cc: Matthieu Baerts Cc: Fernando Fernandez Mancera Cc: Pedro Falcato Link: https://patch.msgid.link/20260307-ktest-fixes-v1-2-565d412f4925@suse.= com Signed-off-by: Ricardo B. Marli=C3=A8re Signed-off-by: Steven Rostedt --- tools/testing/ktest/ktest.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl index f48ee64c69da..b7a1c8c617e0 100755 --- a/tools/testing/ktest/ktest.pl +++ b/tools/testing/ktest/ktest.pl @@ -4391,7 +4391,7 @@ EOF read_config $ktest_config; =20 if (defined($opt{"LOG_FILE"})) { - $opt{"LOG_FILE"} =3D eval_option("LOG_FILE", $opt{"LOG_FILE"}, -1); + $opt{"LOG_FILE"} =3D set_test_option("LOG_FILE", 1); } =20 # Append any configs entered in manually to the config file. --=20 2.51.0