diff options
author | nirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-01 18:28:17 +0000 |
---|---|---|
committer | nirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-01 18:28:17 +0000 |
commit | 2218d3a81441e898c03172506cd9200f91bbcfbe (patch) | |
tree | bd90bfc1438e09c2a2cbf43a43d7e5f60e74a8f8 /chrome/test/pyautolib/pyauto.py | |
parent | e97b25c21c29373be42c47fe708e4f8c7be6c7b7 (diff) | |
download | chromium_src-2218d3a81441e898c03172506cd9200f91bbcfbe.zip chromium_src-2218d3a81441e898c03172506cd9200f91bbcfbe.tar.gz chromium_src-2218d3a81441e898c03172506cd9200f91bbcfbe.tar.bz2 |
[chromeos] Fix Logout() automation on chromeos to not clear /home/chronos
Logout() used to clear off /home/chronos and /home/chronos/user while
re-initializing the automation channel. This is wrong. Make it not do so.
Add a test to verify that profile and files in /home/chronos & /home/chronos/user
persist across 2 login sessions of the same account.
R=ivankr@chromium.org
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/10441136
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140063 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/pyautolib/pyauto.py')
-rwxr-xr-x | chrome/test/pyautolib/pyauto.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/test/pyautolib/pyauto.py b/chrome/test/pyautolib/pyauto.py index 97b1ba3..89cfe98 100755 --- a/chrome/test/pyautolib/pyauto.py +++ b/chrome/test/pyautolib/pyauto.py @@ -427,6 +427,8 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase): def CleanupBrowserProfileOnChromeOS(): """Cleanup browser profile dir on ChromeOS. + This does not clear cryptohome. + Browser should not be running, or else there will be locked files. """ profile_dir = '/home/chronos/user' @@ -4160,6 +4162,8 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase): Should be logged in to work. Re-initializes the automation channel after logout. """ + clear_profile_orig = self.get_clear_profile() + self.set_clear_profile(False) assert self.GetLoginInfo()['is_logged_in'], \ 'Trying to log out when already logged out.' def _SignOut(): @@ -4168,6 +4172,7 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase): assert self.WaitForSessionManagerRestart(_SignOut), \ 'Session manager did not restart after logout.' self.__SetUp() + self.set_clear_profile(clear_profile_orig) def LockScreen(self): """Locks the screen on chromeos. |