blob: 4977489dd5338d46612aacd86b360864cf5711b1 [file] [log] [blame]
Tom Wai-Hong Tam109f63c2011-12-08 14:58:27 +08001# Copyright (c) 2011 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
5AUTHOR = "Chrome OS Team"
6NAME = "firmware_DevScreenTimeout"
7PURPOSE = "Servo based developer firmware screen timeout test"
8CRITERIA = "This test will fail if the timeout period does not match our spec."
9TIME = "LONG"
10TEST_CATEGORY = "Functional"
11TEST_CLASS = "firmware"
12TEST_TYPE = "server"
13
14DOC = """
15When booting in developer mode, the firmware shows a screen to warn user
16the disk image is not secured. If a user press Ctrl-D or a timeout reaches,
17it will boot to developer mode. This test is to verify the timeout period.
18
19This test tries to boot the system in developer mode twice.
20The first one will repeatly press Ctrl-D on booting in order to reduce
21the time on developer warning screen. The second one will do nothing and
22wait the developer screen timeout. The time difference of these two boots
23is close to the developer screen timeout.
24"""
25
26def run_devscreentimeout(machine):
27 host = hosts.create_host(machine)
28 job.run_test("firmware_DevScreenTimeout", host=host, cmdline_args=args,
29 use_faft=True, disable_sysinfo=True)
30
31parallel_simple(run_devscreentimeout, machines)