blob: 87b3ab3480e0bd78e58f5a03d2c9c9b902449cca [file] [log] [blame]
Mike Trutye51d4362012-07-24 15:15:15 -05001# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
Tom Wai-Hong Tam48958832011-12-30 10:16:57 +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_CgptState"
7PURPOSE = "Servo based executing the CgptState test on client side."
8CRITERIA = "This test will fail if cgpt mis-behaves"
Mike Trutye51d4362012-07-24 15:15:15 -05009SUITE = "faft"
Tom Wai-Hong Tam48958832011-12-30 10:16:57 +080010TIME = "LONG"
11TEST_CATEGORY = "Functional"
12TEST_CLASS = "firmware"
13TEST_TYPE = "server"
14
15DOC = """
16This test triggers the CgptState test on client side. In the client
17CgptState test, it set kernels A and B with different cgpt states
18(priority, tries, successful) and checks their boot results.
19
20The test items and logic are now handled in client. This FAFT test
21just handles the reboot logic.
22See /usr/local/sbin/firmware/saft/cgpt_state.py for more detail.
23"""
24
25def run_cgptstate(machine):
26 host = hosts.create_host(machine)
27 job.run_test("firmware_CgptState", host=host, cmdline_args=args,
Mike Trutye51d4362012-07-24 15:15:15 -050028 use_faft=True, disable_sysinfo=True,
29 dev_mode=False, tag="normal")
Tom Wai-Hong Tam48958832011-12-30 10:16:57 +080030
31parallel_simple(run_cgptstate, machines)