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 347FD3C553B for ; Mon, 20 Apr 2026 19:30:49 +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=1776713449; cv=none; b=IemxVdMek/oTkoGK37GDKnavAgngT+Z4x+dDdZkcFsiZ9nAIkAChrvIEkATVrm6BZghykD7C0Y3FFftZThdtzLMxMPXXAj6uxOMUhF6Qco8Pr2B5fgxX93VEnRWoi4mQt9ODdgwh3GmwfP1mQmlXOKvIM5aSbJ1pjtbJYShVWCo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776713449; c=relaxed/simple; bh=v2K417AxR/NARBRPvELUqVWI6PPxL2hcLb3QeXVHBNY=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=N1LxBklD2ueXARjMQrPilARzGNbuyGU8sxfLqr0U0KnbY2Nb2IjZ+9kvUeriI6m1ExEPHWveOzjh1rBS+eIuckGLLz+XTs8IpB/x8StVfTzn3W8mhz3r7/IGPce0rodH5CO+w0fYv0HMn6x019GrWJgdpVgzBEft4lHbD2YGDQw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=b3ad9gZe; 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="b3ad9gZe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D91A8C2BCB7; Mon, 20 Apr 2026 19:30:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1776713448; bh=v2K417AxR/NARBRPvELUqVWI6PPxL2hcLb3QeXVHBNY=; h=Date:From:To:Cc:Subject:References:From; b=b3ad9gZeaezZ8tCH49gqG5UhXceQ3L2wG0ydq1uPHy0MgYGzteZYSiOnpbWDnxEWV DOwY4doj57pcNB+B5rE+B1INXv0TSic/1I8vIJLDslP2Mgj9FgLhcmLsRDuLsrk9Ki Mz89jpHt6hDCFWLO6ZBQskDZryZfftJweKuUsoopYdCJpTOaUEqNnTn+v7GKSeO0x7 5Zo0lnrWBsbsN1Ot16Fb75bHgQDHjsLoSrwMxVTQ+TaqhOSy8YVvZpnKkMJHu/4rCR NOdIRY5G6+kNYpzIAfhcV4zFUH6c0ki1Ub0PWBN3gOGDakVvMlbCimbjokvPgorQfO Dvn9q3OQgRcaw== Received: from rostedt by gandalf with local (Exim 4.99.1) (envelope-from ) id 1wEuMD-00000006vxG-1BqX; Mon, 20 Apr 2026 15:32:33 -0400 Message-ID: <20260420193233.141675403@kernel.org> User-Agent: quilt/0.69 Date: Mon, 20 Apr 2026 15:32:05 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: "John Warthog9 Hawley" Subject: [for-linus][PATCH 2/2] ktest: Add logfile to failure directory References: <20260420193203.993782513@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 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. Cc: John 'Warthog9' Hawley Link: https://patch.msgid.link/20260420142315.7bbc3624@fedora 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