• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 = 2
18DOC = """
191. Boot the Chromebook and login
202. Set Mirrored mode
213. Press Ctrl+Shift+Q twice to logout
224. Login to chrome book and check the display mode
23
24test_that -b $board $dut_ip $test_name --args="chameleon_host=$chameleon_ip"
25"""
26
27args_dict = utils.args_to_dict(args)
28chameleon_args = hosts.CrosHost.get_chameleon_arguments(args_dict)
29servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
30def run(machine):
31    host = hosts.create_host(machine, chameleon_args=chameleon_args,
32                             servo_args=servo_args)
33    job.run_test("display_CheckModesAfterSignOutSignIn", host=host,
34                 tag='Mirrored')
35
36parallel_simple(run, machines)
37