• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2016 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_MashLogin(test.test):
12    """Verifies chrome --mash 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 mash due to differences in how the GPU process is configured.
27        # http://crbug.com/669965
28        mash_browser_args = ['--mash', '--gpu-no-complete-info-collection']
29
30        logging.info('Testing Chrome --mash startup.')
31        with chrome.Chrome(auto_login=False, extra_browser_args=mash_browser_args):
32            logging.info('Chrome --mash started and loaded OOBE.')
33
34        logging.info('Testing Chrome --mash login.')
35        with chrome.Chrome(extra_browser_args=mash_browser_args):
36            logging.info('Chrome login with --mash succeeded.')
37