[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220408034848.2081355-1-davidgow@google.com>
Date: Fri, 8 Apr 2022 11:48:48 +0800
From: David Gow <davidgow@...gle.com>
To: Daniel Latypov <dlatypov@...gle.com>, brendanhiggins@...gle.com,
skhan@...uxfoundation.org
Cc: David Gow <davidgow@...gle.com>, linux-kernel@...r.kernel.org,
kunit-dev@...glegroups.com, linux-kselftest@...r.kernel.org
Subject: [PATCH] kunit: tool: Print a total count of tests.
Add a count of the total number of tests run (including skipped tests,
which do run a little bit until they decide to skip themselves) to the
summary line.
Signed-off-by: David Gow <davidgow@...gle.com>
---
This patch depends on:
https://lore.kernel.org/linux-kselftest/20220407223019.2066361-1-dlatypov@google.com/
tools/testing/kunit/kunit_parser.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/kunit/kunit_parser.py b/tools/testing/kunit/kunit_parser.py
index 957907105429..da01998d29b1 100644
--- a/tools/testing/kunit/kunit_parser.py
+++ b/tools/testing/kunit/kunit_parser.py
@@ -96,7 +96,7 @@ class TestCounts:
"""
statuses = [('Passed', self.passed), ('Failed', self.failed),
('Crashed', self.crashed), ('Skipped', self.skipped),
- ('Errors', self.errors)]
+ ('Errors', self.errors), ('Total', self.total())]
return ', '.join('{}: {}'.format(s, n) for s, n in statuses if n > 0)
def total(self) -> int:
--
2.35.1.1178.g4f1659d476-goog
Powered by blists - more mailing lists