mirror-linux/tools/testing/ktest
Ricardo B. Marlière 81fca70874 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>
2026-03-18 16:00:54 -04:00
..
examples ktest.pl: Fix typo "accesing" 2024-12-18 16:51:50 -05:00
compare-ktest-sample.pl tweewide: Fix most Shebang lines 2020-12-08 23:30:04 +09:00
config-bisect.pl ktest.pl: Fix uninitialized var in config-bisect.pl 2025-12-03 18:25:18 -05:00
ktest.pl ktest: Store failure logs also in fatal paths 2026-03-18 16:00:54 -04:00
sample.conf ktest: Add PRE_KTEST_DIE for PRE_KTEST failures 2026-03-09 10:32:08 -04:00