Index: build/android/test_runner.py |
diff --git a/build/android/test_runner.py b/build/android/test_runner.py |
index cf30b4571793924b2ce0fba08a702bc07c28bf39..ca6fe419429b59a8058fd921d69896f3a158def8 100755 |
--- a/build/android/test_runner.py |
+++ b/build/android/test_runner.py |
@@ -975,7 +975,7 @@ |
ProcessCommonOptions(args) |
logging.info('command: %s', ' '.join(sys.argv)) |
- if args.enable_platform_mode or command in ('gtest', 'instrumentation'): |
+ if args.enable_platform_mode: |
return RunTestsInPlatformMode(args) |
forwarder.Forwarder.RemoveHostLog() |
@@ -986,8 +986,12 @@ |
return _GetAttachedDevices(args.blacklist_file, args.test_device, |
args.enable_device_cache) |
- if command == 'linker': |
+ if command == 'gtest': |
+ return RunTestsInPlatformMode(args) |
+ elif command == 'linker': |
return _RunLinkerTests(args, get_devices()) |
+ elif command == 'instrumentation': |
+ return _RunInstrumentationTests(args, get_devices()) |
elif command == 'junit': |
return _RunJUnitTests(args) |
elif command == 'monkey': |