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

Side by Side Diff: gm/rebaseline_server/download_actuals.py

Issue 385783002: roll "common" DEPS, and replace tools/pyutils with it (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix pylint complaints Created 6 years, 5 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 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 """ 3 """
4 Copyright 2014 Google Inc. 4 Copyright 2014 Google Inc.
5 5
6 Use of this source code is governed by a BSD-style license that can be 6 Use of this source code is governed by a BSD-style license that can be
7 found in the LICENSE file. 7 found in the LICENSE file.
8 8
9 Download actual GM results for a particular builder. 9 Download actual GM results for a particular builder.
10 """ 10 """
11 11
12 # System-level imports 12 # System-level imports
13 import optparse 13 import optparse
14 import os 14 import os
15 import posixpath 15 import posixpath
16 import re 16 import re
17 import urllib2 17 import urllib2
18 18
19 # Must fix up PYTHONPATH before importing from within Skia
20 # pylint: disable=W0611
21 import fix_pythonpath
22 # pylint: enable=W0611
borenet 2014/07/11 12:59:11 Same comment.
23
19 # Imports from within Skia 24 # Imports from within Skia
20 import fix_pythonpath # must do this first 25 from py.utils import gs_utils
21 from pyutils import gs_utils 26 from py.utils import url_utils
22 from pyutils import url_utils
23 import buildbot_globals 27 import buildbot_globals
24 import gm_json 28 import gm_json
25 29
26 30
27 GM_SUMMARIES_BUCKET = buildbot_globals.Get('gm_summaries_bucket') 31 GM_SUMMARIES_BUCKET = buildbot_globals.Get('gm_summaries_bucket')
28 DEFAULT_ACTUALS_BASE_URL = ( 32 DEFAULT_ACTUALS_BASE_URL = (
29 'http://storage.googleapis.com/%s' % GM_SUMMARIES_BUCKET) 33 'http://storage.googleapis.com/%s' % GM_SUMMARIES_BUCKET)
30 DEFAULT_JSON_FILENAME = 'actual-results.json' 34 DEFAULT_JSON_FILENAME = 'actual-results.json'
31 35
32 36
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 remaining_args) 147 remaining_args)
144 148
145 downloader = Download(actuals_base_url=params.actuals_base_url) 149 downloader = Download(actuals_base_url=params.actuals_base_url)
146 downloader.fetch(builder_name=params.builder, 150 downloader.fetch(builder_name=params.builder,
147 dest_dir=params.dest_dir) 151 dest_dir=params.dest_dir)
148 152
149 153
150 154
151 if __name__ == '__main__': 155 if __name__ == '__main__':
152 main() 156 main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698