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

Unified Diff: build/android/adb_install_apk.py

Issue 422883002: gdb : importing gdb webkit path (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed checking sequence of attached device list & device option Created 6 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/adb_install_apk.py
diff --git a/build/android/adb_install_apk.py b/build/android/adb_install_apk.py
index 5d0fd171494090e70247d0552a4cf3d4f2bb6c33..b2a71f42c2e40595f0cdbbb0f9940a599833c234 100755
--- a/build/android/adb_install_apk.py
+++ b/build/android/adb_install_apk.py
@@ -73,15 +73,15 @@ def main(argv):
devices = android_commands.GetAttachedDevices()
+ if not devices:
+ raise Exception('Error: no connected devices')
+
if options.device:
if options.device not in devices:
raise Exception('Error: %s not in attached devices %s' % (options.device,
','.join(devices)))
devices = [options.device]
- if not devices:
- raise Exception('Error: no connected devices')
-
device_utils.DeviceUtils.parallel(devices).Install(
options.apk, reinstall=options.keep_data)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698