From mboxrd@z Thu Jan 1 00:00:00 1970 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 0DE193644D7 for ; Mon, 20 Apr 2026 18:23:27 +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=1776709408; cv=none; b=uv7s8LaYxHXxTfcg4LBKktxhifFEKyqpC6H9AY+4Xe99v5BlO63auepKz73+XavhdDmK0cm12zf8vqyC1Te5cH83KdmrCKVRtHgLtrEOA/BTiwmqeKxYszrwOq3j8fwqb9He8Sp/gdL438BUAtFrG/1KC0KXWtlnjMZC54zIyfs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776709408; c=relaxed/simple; bh=rhw3YD9ERe9iKeqfBDT7mbXEki9tIaUgV3KgthhX/ss=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=PlMdtwiL/jZg2ramhFurnxWvNYRaIRq7sfosdbZ/KLbWKGu/QGaBUiZMdXF+kkuwNktQKznSsUHwosIpAR2hgt3bdWSBIGmp06ceboRDhIPpIT3UU6FBuCC+Nc3ANP6ncEy+CIRtUZ+xlLSMQAWiTSFcPhfh7EuwCJbYzdYu04E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OOk/3IW1; 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="OOk/3IW1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FEB5C19425; Mon, 20 Apr 2026 18:23:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1776709407; bh=rhw3YD9ERe9iKeqfBDT7mbXEki9tIaUgV3KgthhX/ss=; h=Date:From:To:Cc:Subject:From; b=OOk/3IW1c4UKWRadXLaJaTJHK7p/LbqUDaq8c+GTraVP4yNt1zMuW2j9B1bod2yp0 6cFqW3Vc3+rLMXWR+0o7PqNx3SyDrx1z6MPAkuRHRntxM/haEB1gdoOxrBj/xMg5UB qoZKzHgD4SMK2f8K59QSPultWNZDY1iF2t+a5YLUsrLDmesbE+LSfzc1moT2RT/4f4 ay/l6sofx/bpijuR9bG6W1nhWxLDfWuSNumedaYSl6y4+Nt6YDWkfMQVgoFkJS9cRQ /MRcNqVuJePsmq4D+NV3gUZgsYaayyK5aD8Zt0153GQidh/TbZhZa40nhf7ZyOAz/Z wK86/GKrzsKEA== Date: Mon, 20 Apr 2026 14:23:25 -0400 From: Steven Rostedt To: LKML Cc: John 'Warthog9' Hawley Subject: [PATCH] ktest: Add logfile to failure directory Message-ID: <20260420142315.7bbc3624@fedora> X-Mailer: Claws Mail 4.3.1 (GTK 3.24.52; x86_64-redhat-linux-gnu) 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=US-ASCII Content-Transfer-Encoding: 7bit From: Steven Rostedt The logfile contains a lot of useful information about the tests being run. Add it to the stored failure directory when the test fails. Signed-off-by: Steven Rostedt --- tools/testing/ktest/ktest.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl index dd55eea15070..f94ed2e98887 100755 --- a/tools/testing/ktest/ktest.pl +++ b/tools/testing/ktest/ktest.pl @@ -1878,6 +1878,12 @@ sub save_logs { "testlog" => $testlog, ); + if (defined($opt{"LOG_FILE"})) { + if (-f $opt{"LOG_FILE"}) { + cp $opt{"LOG_FILE"}, "$dir/logfile"; + } + } + while (my ($name, $source) = each(%files)) { if (-f "$source") { cp "$source", "$dir/$name" or -- 2.51.0