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

Side by Side Diff: build/android/bb_run_sharded_steps.py

Issue 201853007: [Android] Linting the rest of build/android/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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 | « build/android/asan_symbolize.py ('k') | build/android/findbugs_diff.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 # 2 #
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """DEPRECATED! 7 """DEPRECATED!
8 TODO(bulach): remove me once all other repositories reference 8 TODO(bulach): remove me once all other repositories reference
9 'test_runner.py perf' directly. 9 'test_runner.py perf' directly.
10 """ 10 """
11 11
12 import optparse 12 import optparse
13 import os
14 import sys 13 import sys
15 14
16 from pylib import cmd_helper 15 from pylib import cmd_helper
17 16
18 17
19 def main(argv): 18 def main(argv):
20 parser = optparse.OptionParser() 19 parser = optparse.OptionParser()
21 parser.add_option('-s', '--steps', 20 parser.add_option('-s', '--steps',
22 help='A JSON file containing all the steps to be ' 21 help='A JSON file containing all the steps to be '
23 'sharded.') 22 'sharded.')
24 parser.add_option('--flaky_steps', 23 parser.add_option('--flaky_steps',
25 help='A JSON file containing steps that are flaky and ' 24 help='A JSON file containing steps that are flaky and '
26 'will have its exit code ignored.') 25 'will have its exit code ignored.')
27 parser.add_option('-p', '--print_results', 26 parser.add_option('-p', '--print_results',
28 help='Only prints the results for the previously ' 27 help='Only prints the results for the previously '
29 'executed step, do not run it again.') 28 'executed step, do not run it again.')
30 options, urls = parser.parse_args(argv) 29 options, _ = parser.parse_args(argv)
31 if options.print_results: 30 if options.print_results:
32 return cmd_helper.RunCmd(['build/android/test_runner.py', 'perf', 31 return cmd_helper.RunCmd(['build/android/test_runner.py', 'perf',
33 '--print-step', options.print_results]) 32 '--print-step', options.print_results])
34 flaky_options = [] 33 flaky_options = []
35 if options.flaky_steps: 34 if options.flaky_steps:
36 flaky_options = ['--flaky-steps', options.flaky_steps] 35 flaky_options = ['--flaky-steps', options.flaky_steps]
37 return cmd_helper.RunCmd(['build/android/test_runner.py', 'perf', '-v', 36 return cmd_helper.RunCmd(['build/android/test_runner.py', 'perf', '-v',
38 '--steps', options.steps] + flaky_options) 37 '--steps', options.steps] + flaky_options)
39 38
40 39
41 if __name__ == '__main__': 40 if __name__ == '__main__':
42 sys.exit(main(sys.argv)) 41 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « build/android/asan_symbolize.py ('k') | build/android/findbugs_diff.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698