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.

Merge tag 'ktest-v7.1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest

Pull ktest updates from Steven Rostedt:

- Fix month in date timestamp used to create failure directories

On failure, a directory is created to store the logs and config file
to analyze the failure. The Perl function localtime is used to create
the data timestamp of the directory. The month passed back from that
function starts at 0 and not 1, but the timestamp used does not
account for that. Thus for April 20, 2026, the timestamp of 20260320
is used, instead of 20260420.

- Save the logfile to the failure directory

Just the test log was saved to the directory on failure, but there's
useful information in the full logfile that can be helpful to
analyzing the failure. Save the logfile as well.

* tag 'ktest-v7.1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest:
ktest: Add logfile to failure directory
ktest: Fix the month in the name of the failure directory

+7 -1
+7 -1
tools/testing/ktest/ktest.pl
··· 1855 1855 my ($result, $basedir) = @_; 1856 1856 my @t = localtime; 1857 1857 my $date = sprintf "%04d%02d%02d%02d%02d%02d", 1858 - 1900+$t[5],$t[4],$t[3],$t[2],$t[1],$t[0]; 1858 + 1900+$t[5],$t[4]+1,$t[3],$t[2],$t[1],$t[0]; 1859 1859 1860 1860 my $type = $build_type; 1861 1861 if ($type =~ /useconfig/) { ··· 1877 1877 "dmesg" => $dmesg, 1878 1878 "testlog" => $testlog, 1879 1879 ); 1880 + 1881 + if (defined($opt{"LOG_FILE"})) { 1882 + if (-f $opt{"LOG_FILE"}) { 1883 + cp $opt{"LOG_FILE"}, "$dir/logfile"; 1884 + } 1885 + } 1880 1886 1881 1887 while (my ($name, $source) = each(%files)) { 1882 1888 if (-f "$source") {