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

Unified Diff: tools/telemetry/telemetry/internal/platform/android_device.py

Issue 1416703003: [Android] Add a configurable environment for devil/. (RELAND 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years 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
Index: tools/telemetry/telemetry/internal/platform/android_device.py
diff --git a/tools/telemetry/telemetry/internal/platform/android_device.py b/tools/telemetry/telemetry/internal/platform/android_device.py
index 20608639dfd83ec20e332e2c7125e701b2a40a87..92a276fb83218b3fc9d1d3820e8d23808a3cf223 100644
--- a/tools/telemetry/telemetry/internal/platform/android_device.py
+++ b/tools/telemetry/telemetry/internal/platform/android_device.py
@@ -129,6 +129,9 @@ def GetDevice(finder_options):
def CanDiscoverDevices():
"""Returns true if devices are discoverable via adb."""
+ if os.name != 'posix':
+ return False
+
adb_path = constants.GetAdbPath()
if os.path.isabs(adb_path) and not os.path.exists(adb_path):
return False

Powered by Google App Engine
This is Rietveld 408576698