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

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

Issue 2921353002: Refactor how we fetch Telemetry deps conditionally (Closed)
Patch Set: Update path ref Created 3 years, 6 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/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 argparse 8 import argparse
9 import os 9 import os
10 import sys 10 import sys
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 if not benchmark: 91 if not benchmark:
92 raise ValueError('No such benchmark: %s' % options.benchmark_name) 92 raise ValueError('No such benchmark: %s' % options.benchmark_name)
93 FetchDepsForBenchmark(benchmark, output) 93 FetchDepsForBenchmark(benchmark, output)
94 else: 94 else:
95 if not options.force: 95 if not options.force:
96 raw_input( 96 raw_input(
97 'No benchmark name is specified. Fetching all benchmark deps. ' 97 'No benchmark name is specified. Fetching all benchmark deps. '
98 'Press enter to continue...') 98 'Press enter to continue...')
99 for b in benchmark_finders.GetAllBenchmarks(): 99 for b in benchmark_finders.GetAllBenchmarks():
100 print >> output, ('Fetch dependencies for benchmark %s:' 100 print >> output, ('Fetch dependencies for benchmark %s:'
101 % benchmark.Name()) 101 % b.Name())
102 FetchDepsForBenchmark(b, output) 102 FetchDepsForBenchmark(b, output)
103 103
104 if __name__ == '__main__': 104 if __name__ == '__main__':
105 main(sys.argv[1:], sys.stdout) 105 main(sys.argv[1:], sys.stdout)
OLDNEW
« tools/perf/conditionally_execute ('K') | « tools/perf/conditionally_execute ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698