summaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2026-04-20 14:23:25 -0400
committerSteven Rostedt <rostedt@goodmis.org>2026-04-20 15:23:13 -0400
commit932cdaf3e273a2727e77af97f79f12577174c5a0 (patch)
tree03effb9813ece7f0a750080b4b2abd684549b6f5 /tools/testing
parent768059ede35f197575a38b10797b52402d9d4d2f (diff)
downloadlinux-next-932cdaf3e273a2727e77af97f79f12577174c5a0.tar.gz
linux-next-932cdaf3e273a2727e77af97f79f12577174c5a0.zip
ktest: Add logfile to failure directory
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 <warthog9@kernel.org> Link: https://patch.msgid.link/20260420142315.7bbc3624@fedora Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'tools/testing')
-rwxr-xr-xtools/testing/ktest/ktest.pl6
1 files changed, 6 insertions, 0 deletions
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