Skip to content

ktest: Fixes for v7.1

Steven Rostedt lkml stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ktest: Fix the month in the name of the failure directorytools/testing/ktest/ktest.pl+1 -10 replies
2/2ktest: Add logfile to failure directorytools/testing/ktest/ktest.pl+6 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [for-linus][PATCH 0/2] ktest: Fixes for v7.1

ktest updates for v7.1:

- Fix date timestamp of failure directory

When a ktest fails, if STORE_FAILURES is set, then if a test fails, it copies various files to a created directory in the STORE_FAILURES location (like the .config used, and some other files). To create the timestamp portion of the directory name, the Perl function localtime() is used. The month field starts from 0 and the code does not account for this. That is, the date of April 20, 2026 will be displayed as 20260320 instead of 20260420. Add one to the month to have the date be more accurate.

- Save the entire log file in the failure directory

The logfile that keeps track of all tests contains boot messages, error messages, dmesg, etc. This information is very useful in figuring out why a test failed. Save the logfile in the failure directory as well.

git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest.git
for-next

Head SHA1: 932cdaf3e273a2727e77af97f79f12577174c5a0

Steven Rostedt (2):
ktest: Fix the month in the name of the failure directory
ktest: Add logfile to failure directory

----

 tools/testing/ktest/ktest.pl | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)