* [PATCH RESEND v2] Documentation: kunit: document --summary and --failed options
@ 2026-11-25 4:31 Eugenio Zuccarelli
2026-11-25 5:48 ` David Gow
2026-11-25 13:12 ` Eugenio Zuccarelli
0 siblings, 2 replies; 4+ messages in thread
From: Eugenio Zuccarelli @ 2026-11-25 4:31 UTC (permalink / raw)
To: david, brendan.higgins, corbet
Cc: danielmaraboo, raemoar63, skhan, rdunlap, linux-kselftest,
kunit-dev, workflows, linux-doc, linux-kernel
Commit 062a9dd9bad7 ("kunit: tool: Only print the summary") and commit
3c67a2c09b3c ("kunit: tool: print failed tests only") added the --summary
and --failed options to kunit.py, but the matching entries in the
run_wrapper documentation were never added.
Add descriptions for both options next to the other output options, so
the documentation lists the arguments the tool actually accepts.
An LLM-based coding assistant helped draft these entries; I checked them
against kunit.py and kunit_parser.py.
Reviewed-by: Daniel Pereira <danielmaraboo@gmail.com>
Signed-off-by: Eugenio Zuccarelli <eugenio.zuccarelli@gmail.com>
---
Resending: no changes since v2 (26 Oct), only Daniel's Reviewed-by added.
Changes in v2:
- Moved the tool disclosure into the changelog text; the Assisted-by
trailer is no longer described in Documentation/process.
Documentation/dev-tools/kunit/run_wrapper.rst | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/Documentation/dev-tools/kunit/run_wrapper.rst b/Documentation/dev-tools/kunit/run_wrapper.rst
index cecc110a..641ab50a 100644
--- a/Documentation/dev-tools/kunit/run_wrapper.rst
+++ b/Documentation/dev-tools/kunit/run_wrapper.rst
@@ -327,6 +327,14 @@ command line arguments:
- ``--junit``: If set, stores the test results in JUnit XML format and prints to `stdout` or
saves to a file if a filename is specified.
+- ``--summary``: If set, prints only the summary line for parsed test
+ results, rather than the result of every individual test. Does nothing
+ if ``--raw_output`` is set.
+
+- ``--failed``: If set, prints only the tests that failed or crashed, along
+ with the summary line, once all tests have run. Does nothing if
+ ``--raw_output`` is set.
+
- ``--filter``: Specifies filters on test attributes, for example, ``speed!=slow``.
Multiple filters can be used by wrapping input in quotes and separating filters
by commas. Example: ``--filter "speed>slow, module=example"``.
base-commit: c03c1a14507dfaf8b856c2608f9ac216021fc222
--
2.34.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH RESEND v2] Documentation: kunit: document --summary and --failed options
2026-11-25 4:31 [PATCH RESEND v2] Documentation: kunit: document --summary and --failed options Eugenio Zuccarelli
@ 2026-11-25 5:48 ` David Gow
2026-11-25 13:12 ` Eugenio Zuccarelli
1 sibling, 0 replies; 4+ messages in thread
From: David Gow @ 2026-11-25 5:48 UTC (permalink / raw)
To: Eugenio Zuccarelli, brendan.higgins, corbet
Cc: danielmaraboo, raemoar63, skhan, rdunlap, linux-kselftest,
kunit-dev, workflows, linux-doc, linux-kernel
Le 25/11/2026 à 12:31, Eugenio Zuccarelli a écrit :
> Commit 062a9dd9bad7 ("kunit: tool: Only print the summary") and commit
> 3c67a2c09b3c ("kunit: tool: print failed tests only") added the --summary
> and --failed options to kunit.py, but the matching entries in the
> run_wrapper documentation were never added.
>
> Add descriptions for both options next to the other output options, so
> the documentation lists the arguments the tool actually accepts.
>
> An LLM-based coding assistant helped draft these entries; I checked them
> against kunit.py and kunit_parser.py.
>
> Reviewed-by: Daniel Pereira <danielmaraboo@gmail.com>
> Signed-off-by: Eugenio Zuccarelli <eugenio.zuccarelli@gmail.com>
> ---
> Resending: no changes since v2 (26 Oct), only Daniel's Reviewed-by added.
>
> Changes in v2:
> - Moved the tool disclosure into the changelog text; the Assisted-by
> trailer is no longer described in Documentation/process.
>
This looks okay to me, though it'd be nice to include a bit more of the
rationale for using these. I've made a couple of suggestions below,
which I think would be more useful.
If you'd rather keep it as-is, though, let me know -- this certainly is
an improvement either way.
Reviewed-by: David Gow <david@davidgow.net>
Cheers,
-- David
> Documentation/dev-tools/kunit/run_wrapper.rst | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/Documentation/dev-tools/kunit/run_wrapper.rst b/Documentation/dev-tools/kunit/run_wrapper.rst
> index cecc110a..641ab50a 100644
> --- a/Documentation/dev-tools/kunit/run_wrapper.rst
> +++ b/Documentation/dev-tools/kunit/run_wrapper.rst
> @@ -327,6 +327,14 @@ command line arguments:
> - ``--junit``: If set, stores the test results in JUnit XML format and prints to `stdout` or
> saves to a file if a filename is specified.
>
> +- ``--summary``: If set, prints only the summary line for parsed test
> + results, rather than the result of every individual test. Does nothing
> + if ``--raw_output`` is set.
Nit: should we describe the summary line further? Such as "prints only
the summary of test results, including the number of tests run, and failed.
> +
> +- ``--failed``: If set, prints only the tests that failed or crashed, along
> + with the summary line, once all tests have run. Does nothing if
> + ``--raw_output`` is set.
I think we could note here that this explicitly does not print passed or
skipped tests, making it easier to see failed tests where there is a
problem.
> +
> - ``--filter``: Specifies filters on test attributes, for example, ``speed!=slow``.
> Multiple filters can be used by wrapping input in quotes and separating filters
> by commas. Example: ``--filter "speed>slow, module=example"``.
>
> base-commit: c03c1a14507dfaf8b856c2608f9ac216021fc222
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v3] Documentation: kunit: document --summary and --failed options
2026-11-25 13:12 ` Eugenio Zuccarelli
@ 2026-11-25 13:12 ` Eugenio Zuccarelli
0 siblings, 0 replies; 4+ messages in thread
From: Eugenio Zuccarelli @ 2026-11-25 13:12 UTC (permalink / raw)
To: david, brendan.higgins, corbet
Cc: danielmaraboo, raemoar63, skhan, rdunlap, linux-kselftest,
kunit-dev, workflows, linux-doc, linux-kernel
Commit 062a9dd9bad7 ("kunit: tool: Only print the summary") and commit
3c67a2c09b3c ("kunit: tool: print failed tests only") added the --summary
and --failed options to kunit.py, but the matching entries in the
run_wrapper documentation were never added.
Add descriptions for both options next to the other output options, so
the documentation lists the arguments the tool actually accepts.
An LLM-based coding assistant helped draft these entries; I checked them
against kunit.py and kunit_parser.py.
Reviewed-by: Daniel Pereira <danielmaraboo@gmail.com>
Reviewed-by: David Gow <david@davidgow.net>
Signed-off-by: Eugenio Zuccarelli <eugenio.zuccarelli@gmail.com>
---
Changes in v3:
- Reworded both entries per David's suggestions: say what the summary
contains, and that --failed hides passed and skipped tests.
Changes in v2:
- Moved the tool disclosure into the changelog text; the Assisted-by
trailer is no longer described in Documentation/process.
Documentation/dev-tools/kunit/run_wrapper.rst | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/Documentation/dev-tools/kunit/run_wrapper.rst b/Documentation/dev-tools/kunit/run_wrapper.rst
index cecc110..9e0d83d 100644
--- a/Documentation/dev-tools/kunit/run_wrapper.rst
+++ b/Documentation/dev-tools/kunit/run_wrapper.rst
@@ -327,6 +327,15 @@ command line arguments:
- ``--junit``: If set, stores the test results in JUnit XML format and prints to `stdout` or
saves to a file if a filename is specified.
+- ``--summary``: If set, prints only the summary of the test results,
+ including the number of tests run and how many failed, rather than the
+ result of every individual test. Does nothing if ``--raw_output`` is set.
+
+- ``--failed``: If set, prints only the tests that failed or crashed,
+ along with the summary line, once all tests have run. Passed and skipped
+ tests are not printed, which makes failures easier to spot in a large
+ run. Does nothing if ``--raw_output`` is set.
+
- ``--filter``: Specifies filters on test attributes, for example, ``speed!=slow``.
Multiple filters can be used by wrapping input in quotes and separating filters
by commas. Example: ``--filter "speed>slow, module=example"``.
base-commit: c03c1a14507dfaf8b856c2608f9ac216021fc222
--
2.34.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH RESEND v2] Documentation: kunit: document --summary and --failed options
2026-11-25 4:31 [PATCH RESEND v2] Documentation: kunit: document --summary and --failed options Eugenio Zuccarelli
2026-11-25 5:48 ` David Gow
@ 2026-11-25 13:12 ` Eugenio Zuccarelli
2026-11-25 13:12 ` [PATCH v3] " Eugenio Zuccarelli
1 sibling, 1 reply; 4+ messages in thread
From: Eugenio Zuccarelli @ 2026-11-25 13:12 UTC (permalink / raw)
To: david, brendan.higgins, corbet
Cc: danielmaraboo, raemoar63, skhan, rdunlap, linux-kselftest,
kunit-dev, workflows, linux-doc, linux-kernel
Hi David,
Thanks for the review, good suggestions. v3 follows with both.
Thanks,
Eugenio
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-11-25 13:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-25 4:31 [PATCH RESEND v2] Documentation: kunit: document --summary and --failed options Eugenio Zuccarelli
2026-11-25 5:48 ` David Gow
2026-11-25 13:12 ` Eugenio Zuccarelli
2026-11-25 13:12 ` [PATCH v3] " Eugenio Zuccarelli
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®