* [GIT PULL] ktest: Updates for 7.1
@ 2026-04-14 11:06 Steven Rostedt
2026-04-16 0:51 ` pr-tracker-bot
0 siblings, 1 reply; 4+ messages in thread
From: Steven Rostedt @ 2026-04-14 11:06 UTC (permalink / raw)
To: Linus Torvalds
Cc: LKML, John 'Warthog9' Hawley, Ricardo B. Marlière
Linus,
ktest updates for v7.1:
- Fix undef warning when WARNINGS_FILE is unset
The check_buildlog() references WARNINGS_FILE even when it's not set. Perl
triggers a warning in this case. Check if the WARNINGS_FILE is defined
before checking if the file it represents exists.
- Fix how LOG_FILE is resolved
LOG_FILE is expanded immediately after the config file is parsed. If
LOG_FILE depends on variables from the tests it will use stale values
instead of using the test variables. Have LOG_FILE also resolve test
variables.
- Treat a undefined self reference variable as empty
Variables can recursively include itself for appending. Currently, if the
references itself and it is not defined, it leaves the variable in the
define: "VAR = ${VAR} foo" keeps the ${VAR} around. Have it removed
instead.
- Fix clearing of variables per tests
If a variable has a defined default, a test can not clear it by assigning
the variable to empty. Fix this by clearing the variable for a test when
the test config has that variable assigned to nothing.
- Fix run_command() to catch stderr in the shell command parsing
Switch to Perl list form open to use "sh -c" wrapper to run shell commands
to have the log file catch shell parsing errors.
- Fix console output during reboot cycle
The POWER_CYCLE callback during reboot() can miss output from the next
boot making ktest miss the boot string it was waiting for.
- Add PRE_KTEST_DIE for PRE_KTEST failures
If the command for PRE_KTEST fails, ktest does not fail (this was by
design as this command was used to add patches that may or may not apply).
Add PRE_KTEST_DIE value to force ktest to fail if PRE_KTEST fails.
- Run POST_KTEST hooks on failure and cancellation
PRE_KTEST always runs before a ktest test, have POST_KTEST always run
after a test even if the test fails or is cancelled to do the teardown of
PRE_KTEST.
-- Add a --dry-run mode
Add --dry-run to parse the config, print the results and exit without
running any of the tests.
-- Store failures from the dodie() path as well
The STORE_FAILURES saves the logs on failure, but there's failure paths
that miss storing. Perform STORE_FAILURES in dodie() to capture these
failures too.
Please pull the latest ktest-v7.1 tree, which can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest.git
ktest-v7.1
Tag SHA1: 48960daaba200a9ab1db0dad11be71f900a60415
Head SHA1: 81fca7087466bd81fff7100d824b2c788edf7a97
Ricardo B. Marlière (10):
ktest: Avoid undef warning when WARNINGS_FILE is unset
ktest: Resolve LOG_FILE in test option context
ktest: Treat undefined self-reference as empty
ktest: Honor empty per-test option overrides
ktest: Run commands through list-form shell open
ktest: Stop dropping console output during power-cycle reboot
ktest: Add PRE_KTEST_DIE for PRE_KTEST failures
ktest: Run POST_KTEST hooks on failure and cancellation
ktest: Add a --dry-run mode
ktest: Store failure logs also in fatal paths
----
tools/testing/ktest/ktest.pl | 163 +++++++++++++++++++++++++++++-----------
tools/testing/ktest/sample.conf | 6 ++
2 files changed, 127 insertions(+), 42 deletions(-)
---------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [GIT PULL] ktest: Updates for 7.1
2026-04-14 11:06 [GIT PULL] ktest: Updates for 7.1 Steven Rostedt
@ 2026-04-16 0:51 ` pr-tracker-bot
0 siblings, 0 replies; 4+ messages in thread
From: pr-tracker-bot @ 2026-04-16 0:51 UTC (permalink / raw)
To: Steven Rostedt
Cc: Linus Torvalds, LKML, John 'Warthog9' Hawley,
Ricardo B. Marlière
The pull request you sent on Tue, 14 Apr 2026 07:06:40 -0400:
> git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest.git ktest-v7.1
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/5ed19574ebf0ba857c8a0d3d80ee409ff9498363
Thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* [GIT PULL] ktest: Updates for 7.1
@ 2026-04-22 19:56 Steven Rostedt
2026-04-22 22:14 ` pr-tracker-bot
0 siblings, 1 reply; 4+ messages in thread
From: Steven Rostedt @ 2026-04-22 19:56 UTC (permalink / raw)
To: Linus Torvalds; +Cc: LKML, John 'Warthog9' Hawley
Linus,
ktest updates for v7.1:
- 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 is 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.
Please pull the latest ktest-v7.1-2 tree, which can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest.git
ktest-v7.1-2
Tag SHA1: 283ba465c80c5d6c3d6e9dce8cd621be8652a2d5
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(-)
---------------------------
diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
index 112f9ca2444b..f94ed2e98887 100755
--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -1855,7 +1855,7 @@ sub save_logs {
my ($result, $basedir) = @_;
my @t = localtime;
my $date = sprintf "%04d%02d%02d%02d%02d%02d",
- 1900+$t[5],$t[4],$t[3],$t[2],$t[1],$t[0];
+ 1900+$t[5],$t[4]+1,$t[3],$t[2],$t[1],$t[0];
my $type = $build_type;
if ($type =~ /useconfig/) {
@@ -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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [GIT PULL] ktest: Updates for 7.1
2026-04-22 19:56 Steven Rostedt
@ 2026-04-22 22:14 ` pr-tracker-bot
0 siblings, 0 replies; 4+ messages in thread
From: pr-tracker-bot @ 2026-04-22 22:14 UTC (permalink / raw)
To: Steven Rostedt; +Cc: Linus Torvalds, LKML, John 'Warthog9' Hawley
The pull request you sent on Wed, 22 Apr 2026 15:56:02 -0400:
> git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest.git ktest-v7.1-2
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/66a7974a395fe0ab8fb9f6acd013343bc6bad83a
Thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-04-22 22:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-14 11:06 [GIT PULL] ktest: Updates for 7.1 Steven Rostedt
2026-04-16 0:51 ` pr-tracker-bot
-- strict thread matches above, loose matches on Subject: below --
2026-04-22 19:56 Steven Rostedt
2026-04-22 22:14 ` pr-tracker-bot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.