Index: chrome/test/pyautolib/policy_base.py |
diff --git a/chrome/test/pyautolib/policy_base.py b/chrome/test/pyautolib/policy_base.py |
index 1fd0664f2e4027174b61f0d3a9a3cc5f7bf00534..eb75d8240cf05bfa9916db2ad680da26c737e53b 100644 |
--- a/chrome/test/pyautolib/policy_base.py |
+++ b/chrome/test/pyautolib/policy_base.py |
@@ -287,9 +287,13 @@ class PolicyTestBase(pyauto.PyUITest): |
def tearDown(self): |
"""Cleans up the files created by setUp.""" |
if self.IsChromeOS(): |
+ pyauto.PyUITest.Logout(self) |
+ |
+ pyauto.PyUITest.tearDown(self) |
+ |
+ if self.IsChromeOS(): |
self.StopHTTPServer(self._http_server) |
pyauto_utils.RemovePath(self._temp_data_dir) |
- pyauto.PyUITest.tearDown(self) |
def SetPolicies(self, user_policy=None, device_policy=None): |
"""Enforces the policies given in the arguments as dictionaries. |