OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2013 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 import collections | 6 import collections |
7 import glob | 7 import glob |
8 import multiprocessing | 8 import multiprocessing |
9 import os | 9 import os |
10 import shutil | 10 import shutil |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 """Manages an invocation of test_runner.py for instrumentation tests. | 160 """Manages an invocation of test_runner.py for instrumentation tests. |
161 | 161 |
162 Args: | 162 Args: |
163 options: options object | 163 options: options object |
164 test: An I_TEST namedtuple | 164 test: An I_TEST namedtuple |
165 """ | 165 """ |
166 bb_annotations.PrintNamedStep('%s_instrumentation_tests' % test.name.lower()) | 166 bb_annotations.PrintNamedStep('%s_instrumentation_tests' % test.name.lower()) |
167 | 167 |
168 InstallApk(options, test) | 168 InstallApk(options, test) |
169 args = ['--test-apk', test.test_apk, '--test_data', test.test_data, | 169 args = ['--test-apk', test.test_apk, '--test_data', test.test_data, |
170 '--verbose', '-I'] | 170 '--verbose'] |
171 if options.target == 'Release': | 171 if options.target == 'Release': |
172 args.append('--release') | 172 args.append('--release') |
173 if options.asan: | 173 if options.asan: |
174 args.append('--tool=asan') | 174 args.append('--tool=asan') |
175 if options.upload_to_flakiness_server: | 175 if options.upload_to_flakiness_server: |
176 args.append('--flakiness-dashboard-server=%s' % | 176 args.append('--flakiness-dashboard-server=%s' % |
177 constants.UPSTREAM_FLAKINESS_SERVER) | 177 constants.UPSTREAM_FLAKINESS_SERVER) |
178 if test.host_driven_root: | 178 if test.host_driven_root: |
179 args.append('--python_test_root=%s' % test.host_driven_root) | 179 args.append('--python_test_root=%s' % test.host_driven_root) |
180 if test.annotation: | 180 if test.annotation: |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 return sys.exit('Unknown tests %s' % list(unknown_tests)) | 383 return sys.exit('Unknown tests %s' % list(unknown_tests)) |
384 | 384 |
385 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) | 385 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) |
386 | 386 |
387 MainTestWrapper(options) | 387 MainTestWrapper(options) |
388 provision_devices.KillHostHeartbeat() | 388 provision_devices.KillHostHeartbeat() |
389 | 389 |
390 | 390 |
391 if __name__ == '__main__': | 391 if __name__ == '__main__': |
392 sys.exit(main(sys.argv)) | 392 sys.exit(main(sys.argv)) |
OLD | NEW |