blob: e7e6b1d0e8045fa29883b5777f7b0b4017d34d61 [file] [log] [blame]
# Copyright 2014 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
NAME = "display_SwitchMode"
METADATA = {
"contacts": ["chromeos-gfx-display@google.com"],
"bug_component": "b:188154",
"criteria": "Fails if status checks fail after mode change."
}
ATTRIBUTES = "suite:chameleon_hdmi_perbuild"
TEST_TYPE = "server"
DEPENDENCIES = "chameleon"
'''
This test switches display modes (extended and mirrored).
'''
args_dict = utils.args_to_dict(args)
chameleon_args = hosts.CrosHost.get_chameleon_arguments(args_dict)
def run(machine):
host = hosts.create_host(machine, chameleon_args=chameleon_args)
repeat = int(args_dict.get('repeat', 1))
job.run_test("display_SwitchMode", host=host, repeat=repeat)
parallel_simple(run, machines)