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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/flakytests.py

Issue 1939843002: Replace webkitpy standalone builders functions with instantiable class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved builders out of port, updated comment Created 4 years, 7 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/tool/commands/flakytests.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/flakytests.py b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/flakytests.py
index 2e9a55d30935bec37fcc049263a295f956f31922..28dde27710a33b2daf4c1c19e8b47999e25464f9 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/flakytests.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/flakytests.py
@@ -32,7 +32,6 @@ import optparse
from webkitpy.tool.multicommandtool import AbstractDeclarativeCommand
from webkitpy.layout_tests.layout_package.bot_test_expectations import BotTestExpectationsFactory
from webkitpy.layout_tests.models.test_expectations import TestExpectationParser, TestExpectationsModel, TestExpectations
-from webkitpy.layout_tests.port import builders
from webkitpy.common.net import sheriff_calendar
@@ -107,8 +106,8 @@ Flakiness dashboard: %s
return final_model._test_to_expectation_line.values()
def execute(self, options, args, tool):
- factory = self.expectations_factory()
- lines = self._collect_expectation_lines(builders.all_builder_names(), factory)
+ factory = self.expectations_factory(tool.builders)
+ lines = self._collect_expectation_lines(tool.builders.all_builder_names(), factory)
lines.sort(key=lambda line: line.path)
port = tool.port_factory.get()

Powered by Google App Engine
This is Rietveld 408576698