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>
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user