diff options
author | jbudorick <jbudorick@chromium.org> | 2016-02-24 10:43:09 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-24 18:44:23 +0000 |
commit | e5648339683b69d8eba1b7899b4e2593d2f83de0 (patch) | |
tree | f7726fc963a41dbf2b154ee90cb06ee3ed068b9b /build/android | |
parent | 2639811c0b8d88362a0c0d4970718d8bfef83742 (diff) | |
download | chromium_src-e5648339683b69d8eba1b7899b4e2593d2f83de0.zip chromium_src-e5648339683b69d8eba1b7899b4e2593d2f83de0.tar.gz chromium_src-e5648339683b69d8eba1b7899b4e2593d2f83de0.tar.bz2 |
[Android] Switch instrumentation tests to platform mode.
BUG=428729
Review URL: https://codereview.chromium.org/1387933005
Cr-Commit-Position: refs/heads/master@{#377324}
Diffstat (limited to 'build/android')
3 files changed, 9 insertions, 9 deletions
diff --git a/build/android/pylib/instrumentation/instrumentation_test_instance.py b/build/android/pylib/instrumentation/instrumentation_test_instance.py index 613b778..62d64b1 100644 --- a/build/android/pylib/instrumentation/instrumentation_test_instance.py +++ b/build/android/pylib/instrumentation/instrumentation_test_instance.py @@ -290,7 +290,11 @@ class InstrumentationTestInstance(test_instance.TestInstance): def _initializeDataDependencyAttributes(self, args, isolate_delegate): self._data_deps = [] if args.isolate_file_path: - self._isolate_abs_path = os.path.abspath(args.isolate_file_path) + if os.path.isabs(args.isolate_file_path): + self._isolate_abs_path = args.isolate_file_path + else: + self._isolate_abs_path = os.path.join( + constants.DIR_SOURCE_ROOT, args.isolate_file_path) self._isolate_delegate = isolate_delegate self._isolated_abs_path = os.path.join( constants.GetOutDirectory(), '%s.isolated' % self._test_package) @@ -340,7 +344,7 @@ class InstrumentationTestInstance(test_instance.TestInstance): }) def _initializeFlagAttributes(self, args): - self._flags = ['--disable-fre', '--enable-test-intents'] + self._flags = ['--enable-test-intents'] # TODO(jbudorick): Transition "--device-flags" to "--device-flags-file" if hasattr(args, 'device_flags') and args.device_flags: with open(args.device_flags) as device_flags_file: diff --git a/build/android/pylib/local/device/local_device_instrumentation_test_run.py b/build/android/pylib/local/device/local_device_instrumentation_test_run.py index 9298d75..e588202 100644 --- a/build/android/pylib/local/device/local_device_instrumentation_test_run.py +++ b/build/android/pylib/local/device/local_device_instrumentation_test_run.py @@ -54,7 +54,7 @@ class LocalDeviceInstrumentationTestRun( self._flag_changers = {} def TestPackage(self): - return None + return self._test_instance.suite def SetUp(self): def substitute_external_storage(d, external_storage): diff --git a/build/android/test_runner.py b/build/android/test_runner.py index ca6fe41..cf30b45 100755 --- a/build/android/test_runner.py +++ b/build/android/test_runner.py @@ -975,7 +975,7 @@ def RunTestsCommand(args): # pylint: disable=too-many-return-statements ProcessCommonOptions(args) logging.info('command: %s', ' '.join(sys.argv)) - if args.enable_platform_mode: + if args.enable_platform_mode or command in ('gtest', 'instrumentation'): return RunTestsInPlatformMode(args) forwarder.Forwarder.RemoveHostLog() @@ -986,12 +986,8 @@ def RunTestsCommand(args): # pylint: disable=too-many-return-statements return _GetAttachedDevices(args.blacklist_file, args.test_device, args.enable_device_cache) - if command == 'gtest': - return RunTestsInPlatformMode(args) - elif command == 'linker': + if command == 'linker': return _RunLinkerTests(args, get_devices()) - elif command == 'instrumentation': - return _RunInstrumentationTests(args, get_devices()) elif command == 'junit': return _RunJUnitTests(args) elif command == 'monkey': |