Index: build/android/buildbot/bb_device_steps.py |
diff --git a/build/android/buildbot/bb_device_steps.py b/build/android/buildbot/bb_device_steps.py |
index b1769ee2375391bcac39f44d79e47a3ebecef610..3b0c30923ab4a46e00817f6f64683f4d89ea60df 100755 |
--- a/build/android/buildbot/bb_device_steps.py |
+++ b/build/android/buildbot/bb_device_steps.py |
@@ -84,7 +84,12 @@ def RebootDevices(): |
# which might not exist in this checkout. |
if bb_utils.TESTING: |
return |
- devices = android_commands.GetAttachedDevices() |
+ all_devices = android_commands.GetAttachedDevices() |
frankf
2013/07/19 19:20:31
Instead of adding all this extra logic here, combi
Isaac (away)
2013/07/19 21:31:29
Yeah I agree w/ frank. Let's push this logic into
navabi
2013/07/19 23:03:44
Done. Good idea.
|
+ |
+ def IsRealDevice(device): |
+ return device not in android_commands.GetEmulators() |
+ |
+ devices = filter(IsRealDevice, all_devices) |
print 'Rebooting: %s' % devices |
if devices: |
pool = multiprocessing.Pool(len(devices)) |