Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+6
+6
tools/testing/ktest/ktest.pl
··· 1878 1878 "testlog" => $testlog, 1879 1879 ); 1880 1880 1881 + if (defined($opt{"LOG_FILE"})) { 1882 + if (-f $opt{"LOG_FILE"}) { 1883 + cp $opt{"LOG_FILE"}, "$dir/logfile"; 1884 + } 1885 + } 1886 + 1881 1887 while (my ($name, $source) = each(%files)) { 1882 1888 if (-f "$source") { 1883 1889 cp "$source", "$dir/$name" or