| 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 ea1fc11ec1d26ecb64760542c371ab12e073686a..85923442b084d9bdb69b976e31e018c8c246004b 100644
|
| --- a/build/android/pylib/single_test_runner.py
|
| +++ b/build/android/pylib/single_test_runner.py
|
| @@ -311,6 +311,9 @@ 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.test_package.performance_test:
|
| self.adb.SetupPerformanceTest()
|
| if self.dump_debug_info:
|
|
|