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

Unified Diff: systrace/systrace/tracing_agents/agents_unittest.py

Issue 2592183003: [systrace] Stop the browser after each test. (Closed)
Patch Set: ccraik comment Created 3 years, 12 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: systrace/systrace/tracing_agents/agents_unittest.py
diff --git a/systrace/systrace/tracing_agents/agents_unittest.py b/systrace/systrace/tracing_agents/agents_unittest.py
index 591cde5e59663294848ce3af87a871e7390aed73..74498bd3c34ae7cf63142a34c416c76d893e9b21 100644
--- a/systrace/systrace/tracing_agents/agents_unittest.py
+++ b/systrace/systrace/tracing_agents/agents_unittest.py
@@ -22,6 +22,11 @@ class BaseAgentTest(unittest.TestCase):
if curr_browser == None:
self.StartBrowser()
+ def tearDown(self):
+ # Stop the browser after each test to ensure that it doesn't interfere
+ # with subsequent tests, e.g. by holding the devtools socket open.
+ self.device.ForceStop(self.package_info.package)
+
def StartBrowser(self):
# Turn on the device screen.
self.device.SetScreen(True)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698