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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/analyze_baselines.py

Issue 2578213005: Use underscores to separate words in filenames in webkitpy. (Closed)
Patch Set: Fix check for attribute in output_capture.py. Created 3 years, 12 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 unified diff | Download patch
OLDNEW
1 # Copyright (c) 2016 Google Inc. All rights reserved. 1 # Copyright (c) 2016 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 11 matching lines...) Expand all
22 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 # (INCLUDING NEGLIGENCE OR/ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 # (INCLUDING NEGLIGENCE OR/ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 28
29 import logging 29 import logging
30 import optparse 30 import optparse
31 31
32 from webkitpy.common.checkout.baselineoptimizer import BaselineOptimizer 32 from webkitpy.common.checkout.baseline_optimizer import BaselineOptimizer
33 from webkitpy.layout_tests.controllers.test_result_writer import baseline_name 33 from webkitpy.layout_tests.controllers.test_result_writer import baseline_name
34 from webkitpy.tool.commands.rebaseline import AbstractRebaseliningCommand 34 from webkitpy.tool.commands.rebaseline import AbstractRebaseliningCommand
35 35
36 _log = logging.getLogger(__name__) 36 _log = logging.getLogger(__name__)
37 37
38 38
39 class AnalyzeBaselines(AbstractRebaseliningCommand): 39 class AnalyzeBaselines(AbstractRebaseliningCommand):
40 name = "analyze-baselines" 40 name = "analyze-baselines"
41 help_text = "Analyzes the baselines for the given tests and prints results t hat are identical." 41 help_text = "Analyzes the baselines for the given tests and prints results t hat are identical."
42 show_in_main_help = True 42 show_in_main_help = True
(...skipping 26 matching lines...) Expand all
69 self._tool = tool 69 self._tool = tool
70 self._baseline_suffix_list = options.suffixes.split(',') 70 self._baseline_suffix_list = options.suffixes.split(',')
71 port_names = tool.port_factory.all_port_names(options.platform) 71 port_names = tool.port_factory.all_port_names(options.platform)
72 if not port_names: 72 if not port_names:
73 _log.error("No port names match '%s'", options.platform) 73 _log.error("No port names match '%s'", options.platform)
74 return 74 return
75 self._port = tool.port_factory.get(port_names[0]) 75 self._port = tool.port_factory.get(port_names[0])
76 self._baseline_optimizer = self._optimizer_class(tool, self._port, port_ names) 76 self._baseline_optimizer = self._optimizer_class(tool, self._port, port_ names)
77 for test_name in self._port.tests(args): 77 for test_name in self._port.tests(args):
78 self._analyze_baseline(options, test_name) 78 self._analyze_baseline(options, test_name)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698