| OLD | NEW |
| 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 Loading... |
| 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) |
| OLD | NEW |