aboutsummaryrefslogtreecommitdiff
path: root/tools/patman/test_util.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-07-05 21:41:48 -0600
committerSimon Glass <sjg@chromium.org>2020-07-24 19:25:15 -0600
commit0b3d24a7790d436bb611e5e10c4d0c06ea04fd3c (patch)
tree208f3955c96150bd5ccc465e237c7bf08ec44b05 /tools/patman/test_util.py
parentada61f1ee2a4eaa1b29d699b5ba940483171df8a (diff)
downloadu-boot-0b3d24a7790d436bb611e5e10c4d0c06ea04fd3c.zip
u-boot-0b3d24a7790d436bb611e5e10c4d0c06ea04fd3c.tar.gz
u-boot-0b3d24a7790d436bb611e5e10c4d0c06ea04fd3c.tar.bz2
patman: Use test_util to show test results
This handles skipped tests correctly, so use it instead of the existing code. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/test_util.py')
-rw-r--r--tools/patman/test_util.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/patman/test_util.py b/tools/patman/test_util.py
index aac58fb..0827488 100644
--- a/tools/patman/test_util.py
+++ b/tools/patman/test_util.py
@@ -123,12 +123,12 @@ def ReportResult(toolname:str, test_name: str, result: unittest.TestResult):
for test, err in result.failures:
print(err, result.failures)
if result.skipped:
- print('%d binman test%s SKIPPED:' %
- (len(result.skipped), 's' if len(result.skipped) > 1 else ''))
+ print('%d %s test%s SKIPPED:' % (len(result.skipped), toolname,
+ 's' if len(result.skipped) > 1 else ''))
for skip_info in result.skipped:
print('%s: %s' % (skip_info[0], skip_info[1]))
if result.errors or result.failures:
- print('binman tests FAILED')
+ print('%s tests FAILED' % toolname)
return 1
return 0