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

Unified Diff: build/android/pylib/base/base_test_runner.py

Issue 12659003: Cleanup test server instance after running each a test in gtest test runner (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo Created 7 years, 9 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 | « no previous file | build/android/pylib/chrome_test_server_spawner.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | build/android/pylib/chrome_test_server_spawner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698