From: "Louis H. Poulin II via B4 Relay" <devnull+poulin.louis.student.oaklandcc.edu@kernel.org>
To: Brendan Higgins <brendan.higgins@linux.dev>,
David Gow <david@davidgow.net>
Cc: Rae Moar <raemoar63@gmail.com>,
linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com,
linux-kernel@vger.kernel.org,
"Louis H. Poulin II" <poulin.louis@student.oaklandcc.edu>
Subject: [PATCH v2 0/2] kunit: tool: Preserve failures in parsed KTAP results
Date: Tue, 24 Nov 2026 11:43:50 -0500 [thread overview]
Message-ID: <20261124-kunit-v2-v2-0-e1adbcad6b48@student.oaklandcc.edu> (raw)
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>
next reply other threads:[~2026-11-24 16:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 16:43 Louis H. Poulin II via B4 Relay [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261124-kunit-v2-v2-0-e1adbcad6b48@student.oaklandcc.edu \
--to=devnull+poulin.louis.student.oaklandcc.edu@kernel.org \
--cc=brendan.higgins@linux.dev \
--cc=david@davidgow.net \
--cc=kunit-dev@googlegroups.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=poulin.louis@student.oaklandcc.edu \
--cc=raemoar63@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®