diff --git a/presubmit_canned_checks.py b/presubmit_canned_checks.py index dece7af52b..c29cb09d16 100644 --- a/presubmit_canned_checks.py +++ b/presubmit_canned_checks.py @@ -892,8 +892,8 @@ def CheckOwners(input_api, output_api, source_file_filter=None): output_fn('Missing %s for these files:\n %s' % (needed, '\n '.join(sorted(missing_files))))] if input_api.tbr and affects_owners: - output_list.append(output_fn('Note that TBR does not apply to changes ' - 'that affect OWNERS files.')) + output_list.append(output_fn('The CL affects an OWNERS file, so TBR will ' + 'be ignored.')) if not input_api.is_committing: suggested_owners = owners_db.reviewers_for(missing_files, owner_email) owners_with_comments = [] diff --git a/tests/presubmit_unittest.py b/tests/presubmit_unittest.py index ab0486205a..94289b6386 100755 --- a/tests/presubmit_unittest.py +++ b/tests/presubmit_unittest.py @@ -2763,7 +2763,7 @@ class CannedChecksUnittest(PresubmitTestsBase): expected_output=re.compile( 'Missing LGTM from an OWNER for these files:\n' ' foo\n' - '.*TBR does not apply to changes that affect OWNERS files.', + '.*The CL affects an OWNERS file, so TBR will be ignored.', re.MULTILINE)) def testCannedCheckOwners_WithoutOwnerLGTM(self):