Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1460)

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater_unittest.py

Issue 2655183002: In WPT importer, abort if there are exportable-but-not-yet-exported commits. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater_unittest.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater_unittest.py
index 46add4a27a2c46fb3c32948eb30db2a628fa6b34..1a4a7c35ff106c7a54b7ebcf4d7ff84afa74c71b 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater_unittest.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater_unittest.py
@@ -11,6 +11,12 @@ from webkitpy.w3c.deps_updater import DepsUpdater
class DepsUpdaterTest(unittest.TestCase):
+ def test_abort_on_exportable_commits(self):
+ updater = DepsUpdater(MockHost())
+ updater.exportable_but_not_exported_commits = lambda _: ['aaaa']
+ return_code = updater.main(['wpt'])
+ self.assertEqual(return_code, 1)
+
def test_generate_email_list(self):
updater = DepsUpdater(MockHost())
changed_files = [

Powered by Google App Engine
This is Rietveld 408576698