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: Store failure logs also in fatal paths

STORE_FAILURES was only saved from fail(), so paths that reached dodie()
could exit without preserving failure logs.

That includes fatal hook paths such as:

POST_BUILD_DIE = 1

and ordinary failures when:

DIE_ON_FAILURE = 1

Call save_logs("fail", ...) from dodie() too so fatal failures keep the
same STORE_FAILURES artifacts as non-fatal fail() paths.

Cc: John Hawley <warthog9@eaglescrag.net>
Link: https://patch.msgid.link/20260318-ktest-fixes-v1-1-9dd94d46d84c@suse.com
Signed-off-by: Ricardo B. Marlière <rbm@suse.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>

authored by

Ricardo B. Marlière and committed by
Steven Rostedt
81fca708 22951744

+5
+5
tools/testing/ktest/ktest.pl
··· 1635 1635 print " See $opt{LOG_FILE} for more info.\n"; 1636 1636 } 1637 1637 1638 + # Fatal paths bypass fail(), so STORE_FAILURES needs to be handled here. 1639 + if (defined($store_failures)) { 1640 + save_logs("fail", $store_failures); 1641 + } 1642 + 1638 1643 if ($email_on_error) { 1639 1644 my $name = get_test_name; 1640 1645 my $log_file;