diff --git a/presubmit_canned_checks.py b/presubmit_canned_checks.py index 314a8cb8ab..5131d74cb2 100644 --- a/presubmit_canned_checks.py +++ b/presubmit_canned_checks.py @@ -835,10 +835,9 @@ def GetUnitTests(input_api, message=message_type)) test_run = True if not test_run: - output_api.PresubmitPromptWarning( - "Some python tests were not run. You may need to add\n" - "skip_shebang_check=True for python3 tests.", - items=unit_test) + results.append(output_api.PresubmitPromptWarning( + "The %s test was not run. You may need to add\n" + "skip_shebang_check=True for python3 tests." % unit_test)) return results