Pyauto-based memory test for ChromeOS in perf.py no longer freshly logs in.

When perf.MemoryTest used to log out/in (for a fresh ChromeOS login), this
caused a problem running the test via autotest because the log out cannot
be done as user chronos.  However, in discussions with nirnimesh@ and
sonnyrao@, the agreement is that there's no strong need for a fresh login
anyway in this test.  This has now been removed from the test.

BUG=chromium-os:29815
TEST=None

Review URL: https://chromiumcodereview.appspot.com/10273015

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134598 0039d316-1c4b-4281-b951-d872f2087c98
parent 10055056
...@@ -1768,21 +1768,6 @@ class PageCyclerTest(BasePerfTest): ...@@ -1768,21 +1768,6 @@ class PageCyclerTest(BasePerfTest):
class MemoryTest(BasePerfTest): class MemoryTest(BasePerfTest):
"""Tests to measure memory consumption under different usage scenarios.""" """Tests to measure memory consumption under different usage scenarios."""
def setUp(self):
pyauto.PyUITest.setUp(self)
# Log in to get a fresh Chrome instance with a clean memory state (if
# already logged in, log out first).
if self.GetLoginInfo()['is_logged_in']:
self.Logout()
self.assertFalse(self.GetLoginInfo()['is_logged_in'],
msg='Failed to log out.')
credentials = self.GetPrivateInfo()['test_google_account']
self.Login(credentials['username'], credentials['password'])
self.assertTrue(self.GetLoginInfo()['is_logged_in'],
msg='Failed to log in.')
def ExtraChromeFlags(self): def ExtraChromeFlags(self):
"""Launches Chrome with custom flags. """Launches Chrome with custom flags.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment