mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] kunit: tool: Preserve failures in parsed KTAP results
@ 2026-11-24 16:43 Louis H. Poulin II via B4 Relay
  2026-11-24 16:43 ` [PATCH v2 1/2] kunit: tool: Count failed suites with only skipped tests Louis H. Poulin II via B4 Relay
  2026-11-24 16:43 ` [PATCH v2 2/2] kunit: tool: Fail on out-of-sequence test numbers Louis H. Poulin II via B4 Relay
  0 siblings, 2 replies; 3+ messages in thread
From: Louis H. Poulin II via B4 Relay @ 2026-11-24 16:43 UTC (permalink / raw)
  To: Brendan Higgins, David Gow
  Cc: Rae Moar, linux-kselftest, kunit-dev, linux-kernel, Louis H. Poulin II

The KUnit tool's saved-log parser does not consistently propagate two
failure conditions. A suite reporting not ok with only skipped children
leaves the run SKIPPED. A result with an out-of-sequence number can
still be counted as successful, so kunit.py parse may exit 0 for that
malformed log.

Patch 1 preserves the suite's reported failure in aggregate counts.
Patch 2 marks out-of-sequence result records as failed. It depends on
patch 1 for a malformed parent suite whose child tests are all skipped.

Tested: kunit_tool_test.py (100 tests, all pass) and strict checkpatch
on both patches. No live kernel run was performed.

Changes in v2:
- Resend using b4; v1 was mangled by line wrapping in the mail client
  (reported by David Gow).
- Rebase onto v7.4-rc1; no changes under tools/testing/kunit since v1.
- Patch 1: move the Fixes: tag adjacent to Signed-off-by:. No code change.
- Patch 2: no change.

v1: https://lore.kernel.org/r/CAGQButum4PYb4A%2Bhmqg-bJZbf4L3KkH6rT9tn-0_NTs3xLhGYw@mail.gmail.com

Signed-off-by: Louis H. Poulin II <poulin.louis@student.oaklandcc.edu>
---
Louis H. Poulin II (2):
      kunit: tool: Count failed suites with only skipped tests
      kunit: tool: Fail on out-of-sequence test numbers

 tools/testing/kunit/kunit_parser.py    | 15 +++---
 tools/testing/kunit/kunit_tool_test.py | 92 ++++++++++++++++++++++++++++++++--
 2 files changed, 98 insertions(+), 9 deletions(-)
---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
change-id: 20261124-kunit-v2-d08e69968672

Best regards,
-- 
Louis H. Poulin II <poulin.louis@student.oaklandcc.edu>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-24 16:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-24 16:43 [PATCH v2 0/2] kunit: tool: Preserve failures in parsed KTAP results Louis H. Poulin II via B4 Relay
2026-11-24 16:43 ` [PATCH v2 1/2] kunit: tool: Count failed suites with only skipped tests Louis H. Poulin II via B4 Relay
2026-11-24 16:43 ` [PATCH v2 2/2] kunit: tool: Fail on out-of-sequence test numbers Louis H. Poulin II via B4 Relay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®