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

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

Issue 2786773002: (Reland) Add failure screenshots and images to results detail. (Closed)
Patch Set: yolands nit Created 3 years, 7 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/pylib/utils/google_storage_helper.py ('k') | build/android/test_runner.pydeps » ('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 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 help='Alias for: --verbose --num-retries=0 ' 156 help='Alias for: --verbose --num-retries=0 '
157 '--enable-device-cache --enable-concurrent-adb ' 157 '--enable-device-cache --enable-concurrent-adb '
158 '--skip-clear-data --extract-test-list-from-filter') 158 '--skip-clear-data --extract-test-list-from-filter')
159 159
160 # TODO(jbudorick): Remove this once downstream bots have switched to 160 # TODO(jbudorick): Remove this once downstream bots have switched to
161 # api.test_results. 161 # api.test_results.
162 parser.add_argument( 162 parser.add_argument(
163 '--flakiness-dashboard-server', 163 '--flakiness-dashboard-server',
164 dest='flakiness_dashboard_server', 164 dest='flakiness_dashboard_server',
165 help=argparse.SUPPRESS) 165 help=argparse.SUPPRESS)
166 parser.add_argument(
167 '--gs-results-bucket',
168 help='Google Storage bucket to upload results to.')
169
166 170
167 parser.add_argument( 171 parser.add_argument(
168 '--output-directory', 172 '--output-directory',
169 dest='output_directory', type=os.path.realpath, 173 dest='output_directory', type=os.path.realpath,
170 help='Path to the directory in which build files are' 174 help='Path to the directory in which build files are'
171 ' located (must include build type). This will take' 175 ' located (must include build type). This will take'
172 ' precedence over --debug and --release') 176 ' precedence over --debug and --release')
173 parser.add_argument( 177 parser.add_argument(
174 '--repeat', '--gtest_repeat', '--gtest-repeat', 178 '--repeat', '--gtest_repeat', '--gtest-repeat',
175 dest='repeat', type=int, default=0, 179 dest='repeat', type=int, default=0,
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 if e.is_infra_error: 920 if e.is_infra_error:
917 return constants.INFRA_EXIT_CODE 921 return constants.INFRA_EXIT_CODE
918 return constants.ERROR_EXIT_CODE 922 return constants.ERROR_EXIT_CODE
919 except: # pylint: disable=W0702 923 except: # pylint: disable=W0702
920 logging.exception('Unrecognized error occurred.') 924 logging.exception('Unrecognized error occurred.')
921 return constants.ERROR_EXIT_CODE 925 return constants.ERROR_EXIT_CODE
922 926
923 927
924 if __name__ == '__main__': 928 if __name__ == '__main__':
925 sys.exit(main()) 929 sys.exit(main())
OLDNEW
« no previous file with comments | « build/android/pylib/utils/google_storage_helper.py ('k') | build/android/test_runner.pydeps » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698