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

Unified Diff: build/android/install_emulator_deps.py

Issue 13543008: Fix AVD configuration and defaults based on dogfooder input. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 9 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
Index: build/android/install_emulator_deps.py
diff --git a/build/android/install_emulator_deps.py b/build/android/install_emulator_deps.py
index ff84367a7ec0bf7fed7d4a890cf0ae79c411ca66..aaf7931409387f0b89561163235201adc665133b 100755
--- a/build/android/install_emulator_deps.py
+++ b/build/android/install_emulator_deps.py
@@ -59,7 +59,11 @@ def CheckKVM():
Returns:
True if kvm-ok returns 0 (already enabled)
"""
- rc = cmd_helper.RunCmd(['kvm-ok'])
+ try:
+ rc = cmd_helper.RunCmd(['kvm-ok'])
+ except Exception, e:
+ logging.info('kvm-ok not installed')
+ return False
return not rc
@@ -136,6 +140,8 @@ def main(argv):
else:
GetX86Image()
+ logging.info('Emulator deps for ARM emulator complete.')
pasko-google - do not use 2013/04/05 09:41:05 s/ARM/X86/
navabi 2013/04/08 21:41:56 This log statement is to indicate the deps are rea
pasko-google - do not use 2013/04/09 08:41:45 Oh yes, thanks. The confusing part was exactly thi
+
# Make sure KVM packages are installed and enabled.
if CheckKVM():
logging.info('KVM already installed and enabled.')

Powered by Google App Engine
This is Rietveld 408576698