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..c547fff287533b668f116a94e10fd04055b7b844 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,10 @@ 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() |
+ 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.', |