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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/optimize_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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import logging 5 import logging
6 6
7 from webkitpy.common.checkout.baselineoptimizer import BaselineOptimizer 7 from webkitpy.common.checkout.baseline_optimizer import BaselineOptimizer
8 from webkitpy.layout_tests.controllers.test_result_writer import baseline_name 8 from webkitpy.layout_tests.controllers.test_result_writer import baseline_name
9 from webkitpy.tool.commands.rebaseline import AbstractRebaseliningCommand 9 from webkitpy.tool.commands.rebaseline import AbstractRebaseliningCommand
10 10
11 11
12 _log = logging.getLogger(__name__) 12 _log = logging.getLogger(__name__)
13 13
14 14
15 class OptimizeBaselines(AbstractRebaseliningCommand): 15 class OptimizeBaselines(AbstractRebaseliningCommand):
16 name = "optimize-baselines" 16 name = "optimize-baselines"
17 help_text = "Reshuffles the baselines for the given tests to use as litte sp ace on disk as possible." 17 help_text = "Reshuffles the baselines for the given tests to use as litte sp ace on disk as possible."
(...skipping 20 matching lines...) Expand all
38 self._baseline_suffix_list = options.suffixes.split(',') 38 self._baseline_suffix_list = options.suffixes.split(',')
39 port_names = tool.port_factory.all_port_names(options.platform) 39 port_names = tool.port_factory.all_port_names(options.platform)
40 if not port_names: 40 if not port_names:
41 _log.error("No port names match '%s'", options.platform) 41 _log.error("No port names match '%s'", options.platform)
42 return 42 return
43 port = tool.port_factory.get(port_names[0]) 43 port = tool.port_factory.get(port_names[0])
44 optimizer = BaselineOptimizer(tool, port, port_names) 44 optimizer = BaselineOptimizer(tool, port, port_names)
45 tests = port.tests(args) 45 tests = port.tests(args)
46 for test_name in tests: 46 for test_name in tests:
47 self._optimize_baseline(optimizer, test_name) 47 self._optimize_baseline(optimizer, test_name)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698