| # Copyright 2018 The ChromiumOS Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| from autotest_lib.server import utils |
| |
| AUTHOR = "Intel" |
| NAME = "display_CheckModesAfterSignOutSignIn.Mirrored" |
| METADATA = { |
| "contacts": ["chromeos-gfx-display@google.com"], |
| "bug_component": "b:188154", |
| "criteria": "Fails if the display mode is not preserved." |
| } |
| TEST_CLASS = "display" |
| TEST_TYPE = "server" |
| ATTRIBUTES = "suite:display, suite:chameleon_hdmi" |
| DEPENDENCIES = "chameleon, servo_state:WORKING" |
| JOB_RETRIES = 1 |
| |
| ''' |
| Checks the display mode is preserved after sign out and signin |
| 1. Boot the Chromebook and login |
| 2. Set Mirrored mode |
| 3. Press Ctrl+Shift+Q twice to logout |
| 4. Login to chrome book and check the display mode |
| |
| test_that -b $board $dut_ip $test_name --args="chameleon_host=$chameleon_ip" |
| ''' |
| |
| args_dict = utils.args_to_dict(args) |
| chameleon_args = hosts.CrosHost.get_chameleon_arguments(args_dict) |
| servo_args = hosts.CrosHost.get_servo_arguments(args_dict) |
| def run(machine): |
| host = hosts.create_host(machine, chameleon_args=chameleon_args, |
| servo_args=servo_args) |
| job.run_test("display_CheckModesAfterSignOutSignIn", host=host, |
| tag='Mirrored') |
| |
| parallel_simple(run, machines) |