Chromium Code Reviews| Index: build/android/test_runner.py |
| diff --git a/build/android/test_runner.py b/build/android/test_runner.py |
| index 404a06a8bf4430ad61ab5d0a6798711a6f634da2..5c333a740ffd63a0ac384903699e4e72a480da56 100755 |
| --- a/build/android/test_runner.py |
| +++ b/build/android/test_runner.py |
| @@ -921,30 +921,30 @@ def RunTestsCommand(args, parser): # pylint: disable=too-many-return-statements |
| if args.enable_platform_mode: |
| return RunTestsInPlatformMode(args, parser) |
| - if command in constants.LOCAL_MACHINE_TESTS: |
|
jbudorick
2015/10/09 01:00:20
This was already skipping the device check for pyt
agrieve
2015/10/09 01:04:39
oooooooh. I got it.
Removed the LOCAL_MACHINE_TEST
|
| - devices = [] |
| - else: |
| - devices = _GetAttachedDevices(args.blacklist_file, args.test_device, |
| - args.enable_device_cache) |
| - |
| forwarder.Forwarder.RemoveHostLog() |
| if not ports.ResetTestServerPortAllocation(): |
| raise Exception('Failed to reset test server port.') |
| + def get_devices(): |
| + if command in constants.LOCAL_MACHINE_TESTS: |
| + return [] |
| + return _GetAttachedDevices(args.blacklist_file, args.test_device, |
| + args.enable_device_cache) |
| + |
| if command == 'gtest': |
| return RunTestsInPlatformMode(args, parser) |
| elif command == 'linker': |
| - return _RunLinkerTests(args, devices) |
| + return _RunLinkerTests(args, get_devices()) |
| elif command == 'instrumentation': |
| - return _RunInstrumentationTests(args, devices) |
| + return _RunInstrumentationTests(args, get_devices()) |
| elif command == 'uiautomator': |
| - return _RunUIAutomatorTests(args, devices) |
| + return _RunUIAutomatorTests(args, get_devices()) |
| elif command == 'junit': |
| return _RunJUnitTests(args) |
| elif command == 'monkey': |
| - return _RunMonkeyTests(args, devices) |
| + return _RunMonkeyTests(args, get_devices()) |
| elif command == 'perf': |
| - return _RunPerfTests(args, devices) |
| + return _RunPerfTests(args, get_devices()) |
| elif command == 'python': |
| return _RunPythonTests(args) |
| else: |