• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2017 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import logging
6
7from autotest_lib.client.bin import test, utils
8from autotest_lib.client.common_lib.cros import chrome
9
10
11class desktopui_MusLogin(test.test):
12    """Verifies chrome --mus starts up and logs in correctly."""
13    version = 1
14
15
16    def run_once(self):
17        """Entry point of this test."""
18
19        # Flaky on nyan_* boards. http://crbug.com/717275
20        boards_to_skip = ['nyan_big', 'nyan_kitty', 'nyan_blaze']
21        if utils.get_current_board() in boards_to_skip:
22          logging.warning('Skipping test run on this board.')
23          return
24
25        # GPU info collection via devtools SystemInfo.getInfo does not work
26        # under mus due to differences in how the GPU process is configured.
27        # http://crbug.com/669965
28        mus_browser_args = ['--mus', '--gpu-no-complete-info-collection']
29
30        logging.info('Testing Chrome --mus startup.')
31        with chrome.Chrome(auto_login=False,
32                           extra_browser_args=mus_browser_args):
33            logging.info('Chrome --mus started and loaded OOBE.')
34
35        logging.info('Testing Chrome --mus login.')
36        with chrome.Chrome(extra_browser_args=mus_browser_args):
37            logging.info('Chrome login with --mus succeeded.')
38