| Index: chrome/test/functional/chromeos_volume.py
|
| diff --git a/chrome/test/functional/chromeos_volume.py b/chrome/test/functional/chromeos_volume.py
|
| index bb8c074019452b2e1e192204271ae4320fed2c40..26641b219c4dc70eb564f2503bde8babc5fc652c 100755
|
| --- a/chrome/test/functional/chromeos_volume.py
|
| +++ b/chrome/test/functional/chromeos_volume.py
|
| @@ -6,10 +6,15 @@
|
| import logging
|
| import os
|
| import subprocess
|
| +import sys
|
|
|
| import pyauto_functional # Must be imported before pyauto
|
| import pyauto
|
|
|
| +sys.path.append('/usr/local') # To make autotest libs importable.
|
| +from autotest.cros import cros_ui
|
| +from autotest.cros import cryptohome
|
| +
|
|
|
| class ChromeosVolume(pyauto.PyUITest):
|
| """Test case for volume levels.
|
| @@ -20,10 +25,10 @@ class ChromeosVolume(pyauto.PyUITest):
|
|
|
| def setUp(self):
|
| # We want a clean session_manager instance for every run,
|
| - # so restart session_manager now.
|
| - assert self.WaitForSessionManagerRestart(
|
| - lambda: subprocess.call(['pkill', 'session_manager'])), \
|
| - 'Timed out waiting for session_manager to start.'
|
| + # so restart ui now.
|
| + cros_ui.stop(allow_fail=True)
|
| + cryptohome.remove_all_vaults()
|
| + cros_ui.start(wait_for_login_prompt=False)
|
| pyauto.PyUITest.setUp(self)
|
| self._initial_volume_info = self.GetVolumeInfo()
|
|
|
| @@ -32,6 +37,9 @@ class ChromeosVolume(pyauto.PyUITest):
|
| self.SetMute(self._initial_volume_info['is_mute'])
|
| pyauto.PyUITest.tearDown(self)
|
|
|
| + def ShouldAutoLogin(self):
|
| + return False
|
| +
|
| def _Login(self):
|
| """Perform login"""
|
| credentials = self.GetPrivateInfo()['test_google_account']
|
|
|