Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1012)

Unified Diff: appengine/swarming/swarming_bot/api/platforms/android.py

Issue 2405613002: swarming: Enable USB resets in python-adb on the staging instance. (Closed)
Patch Set: move is_staging check to bot_config Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | appengine/third_party/python-adb/adb/contrib/adb_commands_safe.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/swarming/swarming_bot/api/platforms/android.py
diff --git a/appengine/swarming/swarming_bot/api/platforms/android.py b/appengine/swarming/swarming_bot/api/platforms/android.py
index 9132d7dcddda7f68809b69d3fd71752d0f9479a8..a900a8828d8f359ef86ec1b0fe0368b0bd9a677b 100644
--- a/appengine/swarming/swarming_bot/api/platforms/android.py
+++ b/appengine/swarming/swarming_bot/api/platforms/android.py
@@ -106,12 +106,12 @@ def initialize(pub_key, priv_key):
return high.Initialize(pub_key, priv_key)
-def get_devices(bot, endpoints=None):
+def get_devices(bot, endpoints=None, enable_resets=False):
devices = []
if not gce.is_gce():
devices += high.GetLocalDevices(
'swarming', 10000, 10000, on_error=bot.post_error if bot else None,
- as_root=False)
+ as_root=False, enable_resets=enable_resets)
if endpoints:
devices += high.GetRemoteDevices(
« no previous file with comments | « no previous file | appengine/third_party/python-adb/adb/contrib/adb_commands_safe.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698