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

Unified Diff: build/android/pylib/remote/device/remote_device_gtest_run.py

Issue 1277943002: [Android] Detect when remote service loses contact with device. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | build/android/pylib/remote/device/remote_device_test_run.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/remote/device/remote_device_gtest_run.py
diff --git a/build/android/pylib/remote/device/remote_device_gtest_run.py b/build/android/pylib/remote/device/remote_device_gtest_run.py
index 7a49e96bae5ec1d715cbc4a43542561db979977b..96b217b196357d58edad42b242b02b485b62e421 100644
--- a/build/android/pylib/remote/device/remote_device_gtest_run.py
+++ b/build/android/pylib/remote/device/remote_device_gtest_run.py
@@ -82,6 +82,11 @@ class RemoteDeviceGtestTestRun(remote_device_test_run.RemoteDeviceTestRun):
results.AddResult(base_test_result.BaseTestResult(
'Remote Service detected native crash.',
base_test_result.ResultType.CRASH))
+ elif self._DidDeviceGoOffline():
+ self._LogLogcat()
jbudorick 2015/08/10 18:07:05 Again, I think we want to get to a state where we
+ self._LogAdbTraceLog()
+ raise remote_device_helper.RemoteDeviceError(
+ 'Remote service unable to reach device.', is_infra_error=True)
else:
results.AddResult(base_test_result.BaseTestResult(
'Remote Service detected error.',
« no previous file with comments | « no previous file | build/android/pylib/remote/device/remote_device_test_run.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698