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

Unified Diff: build/android/pylib/device/device_utils.py

Issue 950893004: Add exit code for infra failures to testrunner script. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nits. Created 5 years, 10 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/pylib/device/device_utils.py
diff --git a/build/android/pylib/device/device_utils.py b/build/android/pylib/device/device_utils.py
index fb882e73b85008a1b66a24758a34f64e060a7fdb..e7d39cbdce102e37aa7f2a84edcebfef20fca91d 100644
--- a/build/android/pylib/device/device_utils.py
+++ b/build/android/pylib/device/device_utils.py
@@ -29,6 +29,7 @@ from pylib.device import intent
from pylib.device import logcat_monitor
from pylib.device.commands import install_commands
from pylib.utils import apk_helper
+from pylib.utils import base_error
from pylib.utils import device_temp_file
from pylib.utils import host_utils
from pylib.utils import md5sum
@@ -159,7 +160,7 @@ class DeviceUtils(object):
"""
try:
return self.adb.GetState() == 'device'
- except device_errors.BaseError as exc:
+ except base_error.BaseError as exc:
logging.info('Failed to get state: %s', exc)
return False
« no previous file with comments | « build/android/pylib/device/device_errors.py ('k') | build/android/pylib/remote/device/remote_device_environment.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698