1# Copyright 2018 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
5from autotest_lib.server import utils
6
7AUTHOR = "Intel"
8NAME = "display_CheckModesAfterSignOutSignIn.Mirrored"
9PURPOSE = "To Check the display mode is preserved after sign out and signin"
10CRITERIA = "This test will fail if the display mode is not preserved"
11TIME = "SHORT"
12TEST_CATEGORY = "Functional"
13TEST_CLASS = "display"
14TEST_TYPE = "server"
15ATTRIBUTES = "suite:display, suite:chameleon_hdmi"
16DEPENDENCIES = "chameleon, servo_state:WORKING"
17JOB_RETRIES = 1
18PY_VERSION = 3
19
20DOC = """
211. Boot the Chromebook and login
222. Set Mirrored mode
233. Press Ctrl+Shift+Q twice to logout
244. Login to chrome book and check the display mode
25
26test_that -b $board $dut_ip $test_name --args="chameleon_host=$chameleon_ip"
27"""
28
29args_dict = utils.args_to_dict(args)
30chameleon_args = hosts.CrosHost.get_chameleon_arguments(args_dict)
31servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
32def run(machine):
33    host = hosts.create_host(machine, chameleon_args=chameleon_args,
34                             servo_args=servo_args)
35    job.run_test("display_CheckModesAfterSignOutSignIn", host=host,
36                 tag='Mirrored')
37
38parallel_simple(run, machines)
39