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

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

Issue 1415393002: Android test_runner.py: Make --num-retries an alias for --num_retries (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 1 month 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 'Default is env var BUILDTYPE or Debug.')) 72 'Default is env var BUILDTYPE or Debug.'))
73 73
74 group.add_argument('--build-directory', dest='build_directory', 74 group.add_argument('--build-directory', dest='build_directory',
75 help=('Path to the directory in which build files are' 75 help=('Path to the directory in which build files are'
76 ' located (should not include build type)')) 76 ' located (should not include build type)'))
77 group.add_argument('--output-directory', dest='output_directory', 77 group.add_argument('--output-directory', dest='output_directory',
78 help=('Path to the directory in which build files are' 78 help=('Path to the directory in which build files are'
79 ' located (must include build type). This will take' 79 ' located (must include build type). This will take'
80 ' precedence over --debug, --release and' 80 ' precedence over --debug, --release and'
81 ' --build-directory')) 81 ' --build-directory'))
82 group.add_argument('--num_retries', dest='num_retries', type=int, default=2, 82 group.add_argument('--num_retries', '--num-retries', dest='num_retries',
83 type=int, default=2,
83 help=('Number of retries for a test before ' 84 help=('Number of retries for a test before '
84 'giving up (default: %(default)s).')) 85 'giving up (default: %(default)s).'))
85 group.add_argument('-v', 86 group.add_argument('-v',
86 '--verbose', 87 '--verbose',
87 dest='verbose_count', 88 dest='verbose_count',
88 default=0, 89 default=0,
89 action='count', 90 action='count',
90 help='Verbose level (multiple times for more)') 91 help='Verbose level (multiple times for more)')
91 group.add_argument('--flakiness-dashboard-server', 92 group.add_argument('--flakiness-dashboard-server',
92 dest='flakiness_dashboard_server', 93 dest='flakiness_dashboard_server',
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 if e.is_infra_error: 1008 if e.is_infra_error:
1008 return constants.INFRA_EXIT_CODE 1009 return constants.INFRA_EXIT_CODE
1009 return constants.ERROR_EXIT_CODE 1010 return constants.ERROR_EXIT_CODE
1010 except: # pylint: disable=W0702 1011 except: # pylint: disable=W0702
1011 logging.exception('Unrecognized error occurred.') 1012 logging.exception('Unrecognized error occurred.')
1012 return constants.ERROR_EXIT_CODE 1013 return constants.ERROR_EXIT_CODE
1013 1014
1014 1015
1015 if __name__ == '__main__': 1016 if __name__ == '__main__':
1016 sys.exit(main()) 1017 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