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

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

Issue 2544983002: [Android] Add name '--test-launcher-retry-limit' to test_runner.py (Closed)
Patch Set: checkout latest version Created 4 years 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 | « no previous file | no next file » | 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 2013 The Chromium Authors. All rights reserved. 3 # Copyright 2013 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 """Runs all types of tests from one unified interface.""" 7 """Runs all types of tests from one unified interface."""
8 8
9 import argparse 9 import argparse
10 import collections 10 import collections
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 # TODO(jbudorick): Remove --build-directory once no bots use it. 65 # TODO(jbudorick): Remove --build-directory once no bots use it.
66 group.add_argument('--build-directory', dest='build_directory', 66 group.add_argument('--build-directory', dest='build_directory',
67 help='DEPRECATED') 67 help='DEPRECATED')
68 group.add_argument('--output-directory', dest='output_directory', 68 group.add_argument('--output-directory', dest='output_directory',
69 type=os.path.realpath, 69 type=os.path.realpath,
70 help=('Path to the directory in which build files are' 70 help=('Path to the directory in which build files are'
71 ' located (must include build type). This will take' 71 ' located (must include build type). This will take'
72 ' precedence over --debug, --release and' 72 ' precedence over --debug, --release and'
73 ' --build-directory')) 73 ' --build-directory'))
74 group.add_argument('--num_retries', '--num-retries', dest='num_retries', 74 group.add_argument('--num_retries', '--num-retries',
75 '--test_launcher_retry_limit',
76 '--test-launcher-retry-limit',
77 dest='num_retries',
75 type=int, default=2, 78 type=int, default=2,
76 help=('Number of retries for a test before ' 79 help=('Number of retries for a test before '
77 'giving up (default: %(default)s).')) 80 'giving up (default: %(default)s).'))
78 group.add_argument('-v', 81 group.add_argument('-v',
79 '--verbose', 82 '--verbose',
80 dest='verbose_count', 83 dest='verbose_count',
81 default=0, 84 default=0,
82 action='count', 85 action='count',
83 help='Verbose level (multiple times for more)') 86 help='Verbose level (multiple times for more)')
84 group.add_argument('--flakiness-dashboard-server', 87 group.add_argument('--flakiness-dashboard-server',
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 if e.is_infra_error: 867 if e.is_infra_error:
865 return constants.INFRA_EXIT_CODE 868 return constants.INFRA_EXIT_CODE
866 return constants.ERROR_EXIT_CODE 869 return constants.ERROR_EXIT_CODE
867 except: # pylint: disable=W0702 870 except: # pylint: disable=W0702
868 logging.exception('Unrecognized error occurred.') 871 logging.exception('Unrecognized error occurred.')
869 return constants.ERROR_EXIT_CODE 872 return constants.ERROR_EXIT_CODE
870 873
871 874
872 if __name__ == '__main__': 875 if __name__ == '__main__':
873 sys.exit(main()) 876 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698