* [PATCH] ktest: Add logfile to failure directory
@ 2026-04-20 18:23 Steven Rostedt
0 siblings, 0 replies; only message in thread
From: Steven Rostedt @ 2026-04-20 18:23 UTC (permalink / raw)
To: LKML; +Cc: John 'Warthog9' Hawley
From: Steven Rostedt <rostedt@goodmis.org>
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 <rostedt@goodmis.org>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-04-20 18:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-20 18:23 [PATCH] ktest: Add logfile to failure directory Steven Rostedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox