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

Unified Diff: build/android/pylib/instrumentation/test_runner.py

Issue 265743002: [Android] Switch to new interfaces of GetAVDs and RestartAdbServer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 | « build/android/pylib/gtest/test_runner.py ('k') | build/android/pylib/utils/test_environment.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/instrumentation/test_runner.py
diff --git a/build/android/pylib/instrumentation/test_runner.py b/build/android/pylib/instrumentation/test_runner.py
index 3be22a1338a588020e76f4fcb12a24cfac9664a5..a18c67049b694317a0432d2869111215016dc987 100644
--- a/build/android/pylib/instrumentation/test_runner.py
+++ b/build/android/pylib/instrumentation/test_runner.py
@@ -16,7 +16,7 @@ from pylib import flag_changer
from pylib import valgrind_tools
from pylib.base import base_test_result
from pylib.base import base_test_runner
-from pylib.device import adb_wrapper
+from pylib.device import device_errors
from pylib.instrumentation import json_perf_parser
from pylib.instrumentation import test_result
@@ -329,7 +329,7 @@ class TestRunner(base_test_runner.BaseTestRunner):
return self.device.old_interface.RunInstrumentationTest(
test, self.test_pkg.GetPackageName(),
self._GetInstrumentationArgs(), timeout)
- except (adb_wrapper.CommandTimeoutError,
+ except (device_errors.CommandTimeoutError,
# TODO(jbudorick) Remove this once the underlying implementations
# for the above are switched or wrapped.
android_commands.errors.WaitForResponseTimedOutError):
@@ -369,8 +369,8 @@ class TestRunner(base_test_runner.BaseTestRunner):
results.AddResult(result)
# Catch exceptions thrown by StartInstrumentation().
# See ../../third_party/android/testrunner/adb_interface.py
- except (adb_wrapper.CommandTimeoutError,
- adb_wrapper.DeviceUnreachableError,
+ except (device_errors.CommandTimeoutError,
+ device_errors.DeviceUnreachableError,
# TODO(jbudorick) Remove these once the underlying implementations
# for the above are switched or wrapped.
android_commands.errors.WaitForResponseTimedOutError,
« no previous file with comments | « build/android/pylib/gtest/test_runner.py ('k') | build/android/pylib/utils/test_environment.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698