blob: c28054b553c2994983d5b5985cfa7de979ba91a2 [file] [log] [blame]
Mike Trutye51d4362012-07-24 15:15:15 -05001# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
Tom Wai-Hong Tam109f63c2011-12-08 14:58:27 +08002# 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."
Tom Wai-Hong Tamdf6df512012-09-12 16:16:43 +08009SUITE = "faft,faft_dev,faft_lv4"
Tom Wai-Hong Tam109f63c2011-12-08 14:58:27 +080010TIME = "LONG"
11TEST_CATEGORY = "Functional"
12TEST_CLASS = "firmware"
13TEST_TYPE = "server"
14
15DOC = """
16When booting in developer mode, the firmware shows a screen to warn user
17the disk image is not secured. If a user press Ctrl-D or a timeout reaches,
18it will boot to developer mode. This test is to verify the timeout period.
19
20This test tries to boot the system in developer mode twice.
21The first one will repeatly press Ctrl-D on booting in order to reduce
22the time on developer warning screen. The second one will do nothing and
23wait the developer screen timeout. The time difference of these two boots
24is close to the developer screen timeout.
25"""
26
27def run_devscreentimeout(machine):
28 host = hosts.create_host(machine)
29 job.run_test("firmware_DevScreenTimeout", host=host, cmdline_args=args,
Mike Trutye51d4362012-07-24 15:15:15 -050030 use_faft=True, disable_sysinfo=True,
Mike Truty106451b2012-07-25 10:28:47 -050031 dev_mode=True, tag="dev")
Tom Wai-Hong Tam109f63c2011-12-08 14:58:27 +080032
33parallel_simple(run_devscreentimeout, machines)