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

Unified Diff: build/android/pylib/single_test_runner.py

Issue 10736049: Android: move functions added in third_party to android_commands. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Only restart adb server if running on emulator Created 8 years, 5 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/android_commands.py ('k') | third_party/android_testrunner/README.chromium » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/single_test_runner.py
diff --git a/build/android/pylib/single_test_runner.py b/build/android/pylib/single_test_runner.py
index f1ee76f583fe5835b376fa2018fef5af61fc1bdb..35d5a94bb6c9df6b2bfeae6c22d746247a390c30 100644
--- a/build/android/pylib/single_test_runner.py
+++ b/build/android/pylib/single_test_runner.py
@@ -312,9 +312,10 @@ class SingleTestRunner(BaseTestRunner):
"""Sets up necessary test enviroment for the test suite."""
super(SingleTestRunner, self).SetUp()
self.adb.ClearApplicationState(constants.CHROME_PACKAGE)
- # Sometimes adb server lost connection to the emulator, which will break the
- # test, so restart the adb server before the test.
- self.adb.Adb().RestartAdbServer()
+ if self._running_on_emulator:
+ # Sometimes adb server lost connection to the emulator, which will break
+ # the test, so restart the adb server before the test.
+ self.adb.RestartAdbServer()
if self.test_package.performance_test:
self.adb.SetupPerformanceTest()
if self.dump_debug_info:
« no previous file with comments | « build/android/pylib/android_commands.py ('k') | third_party/android_testrunner/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698