aboutsummaryrefslogtreecommitdiff
path: root/tools/patman
diff options
context:
space:
mode:
authorAlper Nebi Yasak <alpernebiyasak@gmail.com>2022-04-02 20:06:04 +0300
committerSimon Glass <sjg@chromium.org>2022-06-28 03:09:51 +0100
commit6474aaa1d1de0fe246707ff05816a32776d48fa8 (patch)
treea3faeba822453514b665d9358eb891ce41bfc7ab /tools/patman
parent501a9a7ed803ac948adb392e541f9da9bafad60e (diff)
downloadu-boot-6474aaa1d1de0fe246707ff05816a32776d48fa8.zip
u-boot-6474aaa1d1de0fe246707ff05816a32776d48fa8.tar.gz
u-boot-6474aaa1d1de0fe246707ff05816a32776d48fa8.tar.bz2
patman: test_util: Fix printing results for failed tests
When printing a python tool's test results, the entire list of failed tests and their tracebacks are reprinted for every failed test. This makes the test output quite unreadable. Fix the loop to print failures and tracebacks one at a time. Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman')
-rw-r--r--tools/patman/test_util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/patman/test_util.py b/tools/patman/test_util.py
index c60eb36..8b2220d 100644
--- a/tools/patman/test_util.py
+++ b/tools/patman/test_util.py
@@ -127,7 +127,7 @@ def report_result(toolname:str, test_name: str, result: unittest.TestResult):
for test, err in result.errors:
print(test.id(), err)
for test, err in result.failures:
- print(err, result.failures)
+ print(test.id(), err)
if result.skipped:
print('%d %s test%s SKIPPED:' % (len(result.skipped), toolname,
's' if len(result.skipped) > 1 else ''))