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

Steven Rostedt posted 2 patches 2 months ago
tools/testing/ktest/ktest.pl | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
[for-linus][PATCH 0/2] ktest: Fixes for v7.1
Posted by Steven Rostedt 2 months ago
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(-)