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

Unified Diff: chrome/test/functional/chromeos_volume.py

Issue 10827366: [chromeos] Fix chromeos volume tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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: 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']
« 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