Commit c84877f7 authored by Robert Ma's avatar Robert Ma Committed by Commit Bot

[blinkpy] Add NOAUTOREVERT to WPT import CLs

Prevent FindIt from auto-reverting import CLs.

Bug: 871392
Change-Id: If4fb4abfcbf0e1e7bf95b8272701031ccb96ee38
Reviewed-on: https://chromium-review.googlesource.com/1164030Reviewed-by: default avatarChan Li <chanli@chromium.org>
Reviewed-by: default avatarQuinten Yearsley <qyearsley@chromium.org>
Commit-Queue: Robert Ma <robertma@chromium.org>
Cr-Commit-Position: refs/heads/master@{#581306}
parent ad6a740a
...@@ -503,6 +503,9 @@ class TestImporter(object): ...@@ -503,6 +503,9 @@ class TestImporter(object):
if directory_owners: if directory_owners:
description += self._format_directory_owners(directory_owners) + '\n\n' description += self._format_directory_owners(directory_owners) + '\n\n'
# Prevent FindIt from auto-reverting import CLs.
description += 'NOAUTOREVERT=true\n'
# Move any No-Export tag to the end of the description. # Move any No-Export tag to the end of the description.
description = description.replace('No-Export: true', '') description = description.replace('No-Export: true', '')
description = description.replace('\n\n\n\n', '\n\n') description = description.replace('\n\n\n\n', '\n\n')
......
...@@ -308,6 +308,7 @@ class TestImporterTest(LoggingTestCase): ...@@ -308,6 +308,7 @@ class TestImporterTest(LoggingTestCase):
'lines to TestExpectations rather than reverting. See:\n' 'lines to TestExpectations rather than reverting. See:\n'
'https://chromium.googlesource.com' 'https://chromium.googlesource.com'
'/chromium/src/+/master/docs/testing/web_platform_tests.md\n\n' '/chromium/src/+/master/docs/testing/web_platform_tests.md\n\n'
'NOAUTOREVERT=true\n'
'No-Export: true') 'No-Export: true')
self.assertEqual(host.executive.calls, [['git', 'log', '-1', '--format=%B']]) self.assertEqual(host.executive.calls, [['git', 'log', '-1', '--format=%B']])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment