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

Unified Diff: build/android/install_emulator_deps.py

Issue 13300002: Android: fixes emulator support in unit test scripts. (Closed) Base URL: http://git.chromium.org/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..1743d10b4e013acaed7d506c6d9d1c13880dcd7a 100755
--- a/build/android/install_emulator_deps.py
+++ b/build/android/install_emulator_deps.py
@@ -59,8 +59,11 @@ def CheckKVM():
Returns:
True if kvm-ok returns 0 (already enabled)
"""
- rc = cmd_helper.RunCmd(['kvm-ok'])
- return not rc
+ try:
+ rc = cmd_helper.RunCmd(['kvm-ok'])
+ return not rc
craigdh 2013/04/02 21:15:55 drive-by nit: intermediate variable is unnecessary
Shouqun Liu 2013/04/03 00:35:27 Done.
+ except OSError:
+ return False
def GetSDK():
« no previous file with comments | « no previous file | build/android/pylib/gtest/dispatch.py » ('j') | build/android/pylib/utils/test_options_parser.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698