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

Side by Side Diff: tools/perf/fetch_benchmark_deps.py

Issue 2300653002: [tools/perf] Update code to reference py_utils.cloud_storage (Closed)
Patch Set: update Created 4 years, 3 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
« no previous file with comments | « tools/perf/core/path_util.py ('k') | tools/perf/fetch_benchmark_deps_unittest.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2015 The Chromium Authors. All rights reserved. 2 # Copyright 2015 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """This module fetches and prints the dependencies given a benchmark.""" 6 """This module fetches and prints the dependencies given a benchmark."""
7 7
8 import os 8 import os
9 import sys 9 import sys
10 10
11 from core import path_util 11 from core import path_util
12 12
13 path_util.AddCatapultBaseToPath() 13 path_util.AddPyUtilsToPath()
14 from catapult_base import cloud_storage 14 from py_utils import cloud_storage
15 15
16 path_util.AddTelemetryToPath() 16 path_util.AddTelemetryToPath()
17 from telemetry import benchmark_runner 17 from telemetry import benchmark_runner
18 18
19 from chrome_telemetry_build import chromium_config 19 from chrome_telemetry_build import chromium_config
20 20
21 21
22 def _FetchDependenciesIfNeeded(story_set): 22 def _FetchDependenciesIfNeeded(story_set):
23 """ Download files needed by a user story set. """ 23 """ Download files needed by a user story set. """
24 # Download files in serving_dirs. 24 # Download files in serving_dirs.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 deps = _EnumerateDependencies(story_set) 81 deps = _EnumerateDependencies(story_set)
82 for dep in deps: 82 for dep in deps:
83 print >> output, dep 83 print >> output, dep
84 84
85 85
86 if __name__ == '__main__': 86 if __name__ == '__main__':
87 if len(sys.argv) != 2 or sys.argv[1][0] == '-': 87 if len(sys.argv) != 2 or sys.argv[1][0] == '-':
88 _show_usage() 88 _show_usage()
89 else: 89 else:
90 main() 90 main()
OLDNEW
« no previous file with comments | « tools/perf/core/path_util.py ('k') | tools/perf/fetch_benchmark_deps_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698