Index: build/android/pylib/base/base_test_runner.py |
diff --git a/build/android/pylib/base/base_test_runner.py b/build/android/pylib/base/base_test_runner.py |
index 368ae9ecf487bf9539ec39459ce8f3cc1e64539a..fd4d79295e2edafcddb69ee03a16ae084569c875 100644 |
--- a/build/android/pylib/base/base_test_runner.py |
+++ b/build/android/pylib/base/base_test_runner.py |
@@ -166,6 +166,15 @@ class BaseTestRunner(object): |
self._spawning_server.Stop() |
self.flags.Restore() |
+ def CleanupSpawningServerState(self): |
+ """Tells the spawning server to clean up any state. |
+ |
+ If the spawning server is reused for multiple tests, this should be called |
+ after each test to prevent tests affecting each other. |
+ """ |
+ if self._spawning_server: |
+ self._spawning_server.CleanupState() |
+ |
def LaunchChromeTestServerSpawner(self): |
"""Launches test server spawner.""" |
server_ready = False |