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

Unified Diff: build/android/devil/android/sdk/adb_wrapper.py

Issue 1501843002: [Android] Use more specific host platforms for devil. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: better handling of the no adb case 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
« no previous file with comments | « build/android/devil/android/device_errors.py ('k') | build/android/devil/devil_dependencies.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/devil/android/sdk/adb_wrapper.py
diff --git a/build/android/devil/android/sdk/adb_wrapper.py b/build/android/devil/android/sdk/adb_wrapper.py
index c184c77acb82dedbd3a37e03853ca911e2df8ca7..b254a7525bba9fc4395f8e909a68006d8b4fd712 100644
--- a/build/android/devil/android/sdk/adb_wrapper.py
+++ b/build/android/devil/android/sdk/adb_wrapper.py
@@ -58,7 +58,10 @@ def _FindAdb():
except dependency_manager.NoPathFoundError:
pass
- return devil_env.config.FetchPath('adb')
+ try:
+ return devil_env.config.FetchPath('adb')
+ except dependency_manager.NoPathFoundError:
+ raise device_errors.NoAdbError()
DeviceStat = collections.namedtuple('DeviceStat',
« no previous file with comments | « build/android/devil/android/device_errors.py ('k') | build/android/devil/devil_dependencies.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698