blob: df45c93d4d18c720b86385fa18c3ca8696634408 [file] [log] [blame]
# Copyright 2016 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_MashLogin(test.test):
"""Verifies chrome --mash starts up and logs in correctly."""
version = 1
def run_once(self):
"""Entry point of this test."""
# The test is sometimes flaky on these boards. Mash doesn't target
# hardware this old, so skip the test. http://crbug.com/679213
boards_to_skip = ['x86-mario', 'x86-alex', 'x86-alex_he', 'x86-zgb',
'x86-zgb_he']
if utils.get_current_board() in boards_to_skip:
logging.warning('Skipping test run on this board.')
return
# GPU info collection via devtools SystemInfo.getInfo does not work
# under mash due to differences in how the GPU process is configured.
# http://crbug.com/669965
mash_browser_args = ['--mash', '--gpu-no-complete-info-collection']
logging.info('Testing Chrome --mash startup.')
with chrome.Chrome(auto_login=False, extra_browser_args=mash_browser_args):
logging.info('Chrome --mash started and loaded OOBE.')
logging.info('Testing Chrome --mash login.')
with chrome.Chrome(extra_browser_args=mash_browser_args):
logging.info('Chrome login with --mash succeeded.')