diff --git a/presubmit_support.py b/presubmit_support.py index bb327ac2b..ef42f12a3 100755 --- a/presubmit_support.py +++ b/presubmit_support.py @@ -1792,7 +1792,7 @@ def DoPresubmitChecks(change, for name in ['Messages', 'Warnings', 'ERRORS']: if name in messages: items = messages[name] - sys.stdout.write('** Presubmit %s **\n' % name) + sys.stdout.write('** Presubmit %s: %d **\n' % (name, len(items))) for item in items: item.handle() sys.stdout.write('\n') diff --git a/tests/presubmit_unittest.py b/tests/presubmit_unittest.py index 4c4fe69d3..fc095b9df 100755 --- a/tests/presubmit_unittest.py +++ b/tests/presubmit_unittest.py @@ -882,7 +882,7 @@ def CheckChangeOnCommit(input_api, output_api): text = ( RUNNING_PY_CHECKS_TEXT + 'Warning, no PRESUBMIT.py found.\n' 'Running default presubmit script.\n' - '** Presubmit ERRORS **\n!!\n\n' + '** Presubmit ERRORS: 1 **\n!!\n\n' 'There were Python %d presubmit errors.\n' 'Was the presubmit check useful? If not, run "git cl presubmit -v"\n' 'to figure out which PRESUBMIT.py was run, then run git blame\n'