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

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: Fix nits 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
« no previous file with comments | « no previous file | build/android/pylib/gtest/dispatch.py » ('j') | build/android/pylib/utils/emulator.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..bb544c21ec995098e463bb53de5ecb372035ebd1 100755
--- a/build/android/install_emulator_deps.py
+++ b/build/android/install_emulator_deps.py
@@ -59,8 +59,10 @@ def CheckKVM():
Returns:
True if kvm-ok returns 0 (already enabled)
"""
- rc = cmd_helper.RunCmd(['kvm-ok'])
- return not rc
+ try:
+ return not cmd_helper.RunCmd(['kvm-ok'])
+ except OSError:
+ return False
navabi 2013/04/08 20:11:48 Nice. I have this fix in this patch: https://coder
def GetSDK():
« no previous file with comments | « no previous file | build/android/pylib/gtest/dispatch.py » ('j') | build/android/pylib/utils/emulator.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698