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

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

Issue 2253163002: Minor refactoring: Move set-up of host and port into update_w3c_test_expectations.py. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « third_party/WebKit/Tools/Scripts/update-w3c-test-expectations ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Tools/Scripts/webkitpy/w3c/update_w3c_test_expectations.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/update_w3c_test_expectations.py b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/update_w3c_test_expectations.py
index ff29a89bf24b74eac27820043315987905ce4ec0..e644c409dea7010b0386c61e5e9b00d7f96cecea 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/update_w3c_test_expectations.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/update_w3c_test_expectations.py
@@ -18,7 +18,9 @@ from webkitpy.w3c.test_parser import TestParser
_log = logging.getLogger(__name__)
-def main(host, port):
+def main(host):
+ host.initialize_scm()
+ port = host.port_factory.get()
expectations_file = port.path_to_generic_test_expectations_file()
expectations_line_adder = W3CExpectationsLineAdder(host)
issue_number = expectations_line_adder.get_issue_number()
« no previous file with comments | « third_party/WebKit/Tools/Scripts/update-w3c-test-expectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698