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

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

Issue 2469153002: Remove remaining unused imports in webkitpy. (Closed)
Patch Set: Remove unused imports in webkitpy. Created 4 years, 1 month 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 """A command to fetch new baselines from try jobs for a Rietveld issue. 5 """A command to fetch new baselines from try jobs for a Rietveld issue.
6 6
7 This command interacts with the Rietveld API to get information about try jobs 7 This command interacts with the Rietveld API to get information about try jobs
8 with layout test results. 8 with layout test results.
9 """ 9 """
10 10
11 import json 11 import json
12 import logging 12 import logging
13 import optparse 13 import optparse
14 14
15 from webkitpy.common.net.git_cl import GitCL
15 from webkitpy.common.net.rietveld import Rietveld 16 from webkitpy.common.net.rietveld import Rietveld
16 from webkitpy.common.net.web import Web 17 from webkitpy.common.net.web import Web
17 from webkitpy.common.net.git_cl import GitCL
18 from webkitpy.layout_tests.models.test_expectations import BASELINE_SUFFIX_LIST 18 from webkitpy.layout_tests.models.test_expectations import BASELINE_SUFFIX_LIST
19 from webkitpy.tool.commands.rebaseline import AbstractParallelRebaselineCommand 19 from webkitpy.tool.commands.rebaseline import AbstractParallelRebaselineCommand
20 20
21 _log = logging.getLogger(__name__) 21 _log = logging.getLogger(__name__)
22 22
23 23
24 class RebaselineCL(AbstractParallelRebaselineCommand): 24 class RebaselineCL(AbstractParallelRebaselineCommand):
25 name = "rebaseline-cl" 25 name = "rebaseline-cl"
26 help_text = "Fetches new baselines for a CL from test runs on try bots." 26 help_text = "Fetches new baselines for a CL from test runs on try bots."
27 long_help = ("By default, this command will check the latest try job results " 27 long_help = ("By default, this command will check the latest try job results "
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 def _log_test_prefix_list(test_prefix_list): 204 def _log_test_prefix_list(test_prefix_list):
205 """Logs the tests to download new baselines for.""" 205 """Logs the tests to download new baselines for."""
206 if not test_prefix_list: 206 if not test_prefix_list:
207 _log.info('No tests to rebaseline; exiting.') 207 _log.info('No tests to rebaseline; exiting.')
208 return 208 return
209 _log.debug('Tests to rebaseline:') 209 _log.debug('Tests to rebaseline:')
210 for test, builds in test_prefix_list.iteritems(): 210 for test, builds in test_prefix_list.iteritems():
211 _log.debug(' %s:', test) 211 _log.debug(' %s:', test)
212 for build in sorted(builds): 212 for build in sorted(builds):
213 _log.debug(' %s', build) 213 _log.debug(' %s', build)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698