]> git.baikalelectronics.ru Git - kernel.git/commit
kunit: tool: update test counts summary line format
authorDaniel Latypov <dlatypov@google.com>
Fri, 8 Apr 2022 21:51:05 +0000 (14:51 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 12 May 2022 17:15:26 +0000 (11:15 -0600)
commit2b522ca9fca97f453d09f28fae2599f7c6aa82f3
tree7fb82b7e67eddfe19fbe983c901f0732320c72c8
parent424a89e43073e66fb0c0132dda04ef918f2bb1d9
kunit: tool: update test counts summary line format

Before:
> Testing complete. Passed: 137, Failed: 0, Crashed: 0, Skipped: 36, Errors: 0

After:
> Testing complete. Ran 173 tests: passed: 137, skipped: 36

Even with our current set of statuses, the output is a bit verbose.
It could get worse in the future if we add more (e.g. timeout, kasan).
Let's only print the relevant ones.

I had previously been sympathetic to the argument that always
printing out all the statuses would make it easier to parse results.
But now we have commit fc9df279a6b4 ("kunit: Print test statistics on
failure"), there are test counts printed out in the raw output.
We don't currently print out an overall total across all suites, but it
would be easy to add, if we see a need for that.

Signed-off-by: Daniel Latypov <dlatypov@google.com>
Co-developed-by: David Gow <davidgow@google.com>
Signed-off-by: David Gow <davidgow@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/kunit/kunit_parser.py