| OLD | NEW |
| 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 import fix_pythonpath # pylint: disable=W0611 |
| 21 |
| 19 # Imports from within Skia | 22 # Imports from within Skia |
| 20 import fix_pythonpath # must do this first | 23 from py.utils import gs_utils |
| 21 from pyutils import gs_utils | 24 from py.utils import url_utils |
| 22 from pyutils import url_utils | |
| 23 import buildbot_globals | 25 import buildbot_globals |
| 24 import gm_json | 26 import gm_json |
| 25 | 27 |
| 26 | 28 |
| 27 GM_SUMMARIES_BUCKET = buildbot_globals.Get('gm_summaries_bucket') | 29 GM_SUMMARIES_BUCKET = buildbot_globals.Get('gm_summaries_bucket') |
| 28 DEFAULT_ACTUALS_BASE_URL = ( | 30 DEFAULT_ACTUALS_BASE_URL = ( |
| 29 'http://storage.googleapis.com/%s' % GM_SUMMARIES_BUCKET) | 31 'http://storage.googleapis.com/%s' % GM_SUMMARIES_BUCKET) |
| 30 DEFAULT_JSON_FILENAME = 'actual-results.json' | 32 DEFAULT_JSON_FILENAME = 'actual-results.json' |
| 31 | 33 |
| 32 | 34 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 remaining_args) | 145 remaining_args) |
| 144 | 146 |
| 145 downloader = Download(actuals_base_url=params.actuals_base_url) | 147 downloader = Download(actuals_base_url=params.actuals_base_url) |
| 146 downloader.fetch(builder_name=params.builder, | 148 downloader.fetch(builder_name=params.builder, |
| 147 dest_dir=params.dest_dir) | 149 dest_dir=params.dest_dir) |
| 148 | 150 |
| 149 | 151 |
| 150 | 152 |
| 151 if __name__ == '__main__': | 153 if __name__ == '__main__': |
| 152 main() | 154 main() |
| OLD | NEW |