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

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

Issue 292313015: [Android] Switch to DeviceUtils versions of Reboot and Install. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 6 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/instrumentation/test_package.py ('k') | build/android/update_verification.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 0124281df111b20c1b0477c9be45fa30d1338899..12ae70254e1a21fd6f582ea1ad8809e525941e5d 100644
--- a/build/android/pylib/instrumentation/test_runner.py
+++ b/build/android/pylib/instrumentation/test_runner.py
@@ -152,7 +152,10 @@ class TestRunner(base_test_runner.BaseTestRunner):
str(self.device))
else:
if self.device.old_interface.SetJavaAssertsEnabled(True):
- self.device.old_interface.Reboot(full_reboot=False)
+ # TODO(jbudorick) How to best do shell restart after the
+ # android_commands refactor?
+ self.device.old_interface.RunShellCommand('stop')
+ self.device.old_interface.RunShellCommand('start')
# We give different default value to launch HTTP server based on shard index
# because it may have race condition when multiple processes are trying to
« no previous file with comments | « build/android/pylib/instrumentation/test_package.py ('k') | build/android/update_verification.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698