| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import contextlib | 5 import contextlib |
| 6 import datetime | 6 import datetime |
| 7 import json | 7 import json |
| 8 import os | 8 import os |
| 9 import re | 9 import re |
| 10 import urllib | 10 import urllib |
| (...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 if strict_mode: | 706 if strict_mode: |
| 707 args.extend(['--strict-mode', strict_mode]) | 707 args.extend(['--strict-mode', strict_mode]) |
| 708 if num_retries is not None: | 708 if num_retries is not None: |
| 709 args.extend(['--num-retries', str(num_retries)]) | 709 args.extend(['--num-retries', str(num_retries)]) |
| 710 if device_flags: | 710 if device_flags: |
| 711 args.extend(['--device-flags', device_flags]) | 711 args.extend(['--device-flags', device_flags]) |
| 712 if test_apk: | 712 if test_apk: |
| 713 args.extend(['--test-apk', test_apk]) | 713 args.extend(['--test-apk', test_apk]) |
| 714 if apk_under_test: | 714 if apk_under_test: |
| 715 args.extend(['--apk-under-test', apk_under_test]) | 715 args.extend(['--apk-under-test', apk_under_test]) |
| 716 for a in additional_apks or []: |
| 717 args.extend(['--additional-apk', a]) |
| 716 | 718 |
| 717 if not wrapper_script_suite_name: | 719 if not wrapper_script_suite_name: |
| 718 args.insert(0, 'instrumentation') | 720 args.insert(0, 'instrumentation') |
| 719 for a in additional_apks or []: | |
| 720 args.extend(['--additional-apk', a]) | |
| 721 if isolate_file_path: | 721 if isolate_file_path: |
| 722 args.extend(['--isolate-file-path', isolate_file_path]) | 722 args.extend(['--isolate-file-path', isolate_file_path]) |
| 723 if self.m.chromium.c.BUILD_CONFIG == 'Release': | 723 if self.m.chromium.c.BUILD_CONFIG == 'Release': |
| 724 args.append('--release') | 724 args.append('--release') |
| 725 if official_build: | 725 if official_build: |
| 726 args.extend(['--official-build']) | 726 args.extend(['--official-build']) |
| 727 | 727 |
| 728 step_result = self.test_runner( | 728 step_result = self.test_runner( |
| 729 'Instrumentation test %s%s' % (annotation or name, | 729 'Instrumentation test %s%s' % (annotation or name, |
| 730 ' (%s)' % suffix if suffix else ''), | 730 ' (%s)' % suffix if suffix else ''), |
| (...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1256 Args: | 1256 Args: |
| 1257 step_name: Name of the step. | 1257 step_name: Name of the step. |
| 1258 args: Testrunner arguments. | 1258 args: Testrunner arguments. |
| 1259 """ | 1259 """ |
| 1260 with self.handle_exit_codes(): | 1260 with self.handle_exit_codes(): |
| 1261 script = self.c.test_runner | 1261 script = self.c.test_runner |
| 1262 if wrapper_script_suite_name: | 1262 if wrapper_script_suite_name: |
| 1263 script = self.m.chromium.output_dir.join('bin', 'run_%s' % | 1263 script = self.m.chromium.output_dir.join('bin', 'run_%s' % |
| 1264 wrapper_script_suite_name) | 1264 wrapper_script_suite_name) |
| 1265 return self.m.python(step_name, script, args, **kwargs) | 1265 return self.m.python(step_name, script, args, **kwargs) |
| OLD | NEW |