diff options
author | Moon Kim <moonk@google.com> | 2016-01-28 16:40:36 -0800 |
---|---|---|
committer | Moon Kim <moonk@google.com> | 2016-01-28 16:41:31 -0800 |
commit | 3575cadf7247aa6a8e13264890b63c93e32fa0a9 (patch) | |
tree | 5aa19c60c0907e0817768878de8b0dc6503473a2 | |
parent | f810e617f8407062ec641049f9fe0ae0ae4578ab (diff) | |
download | tradefederation-3575cadf7247aa6a8e13264890b63c93e32fa0a9.tar.gz |
Set device state to ONLINE for stub devices.
Due to a newly introduced post-invocation check(ag/846520), stub devices were
becoming unavailable after running one invocation. Switching the default state of
stub devices to ONLINE to avoid this issue.
BUG: 26837934
Change-Id: I9e72c8554fa9f899110eb79970767e407ea692d4
-rw-r--r-- | src/com/android/tradefed/device/ManagedTestDeviceFactory.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/tradefed/device/ManagedTestDeviceFactory.java b/src/com/android/tradefed/device/ManagedTestDeviceFactory.java index c781da2c9..0210413ba 100644 --- a/src/com/android/tradefed/device/ManagedTestDeviceFactory.java +++ b/src/com/android/tradefed/device/ManagedTestDeviceFactory.java @@ -45,7 +45,7 @@ public class ManagedTestDeviceFactory implements IManagedTestDeviceFactory { if (idevice instanceof FastbootDevice) { testDevice.setDeviceState(TestDeviceState.FASTBOOT); } else if (idevice instanceof StubDevice) { - testDevice.setDeviceState(TestDeviceState.NOT_AVAILABLE); + testDevice.setDeviceState(TestDeviceState.ONLINE); } return testDevice; } |