blob: 2b9ff0827c66af1c474140d076bb4407bb68a048 [file] [log] [blame]
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
from autotest_lib.client.bin import test, utils
from autotest_lib.client.common_lib.cros import chrome
class desktopui_MusLogin(test.test):
"""Verifies chrome --mus starts up and logs in correctly."""
version = 1
def run_once(self):
"""Entry point of this test."""
# The test is flaky on x86-* boards. Mash doesn't target hardware this
# old, so skip the test.
# The test is also flaky on nyan_* boards. Temporarily skip the test
# until this can be fixed.
boards_to_skip = ['x86-mario', 'x86-alex', 'x86-alex_he', 'x86-zgb',
'x86-zgb_he', 'nyan_big', 'nyan_kitty', 'nyan_blaze']
if utils.get_current_board() in boards_to_skip:
logging.warning('Skipping test run on this board.')
# GPU info collection via devtools SystemInfo.getInfo does not work
# under mus due to differences in how the GPU process is configured.
mus_browser_args = ['--mus', '--gpu-no-complete-info-collection']'Testing Chrome --mus startup.')
with chrome.Chrome(auto_login=False,
extra_browser_args=mus_browser_args):'Chrome --mus started and loaded OOBE.')'Testing Chrome --mus login.')
with chrome.Chrome(extra_browser_args=mus_browser_args):'Chrome login with --mus succeeded.')