Mike Truty | e51d436 | 2012-07-24 15:15:15 -0500 | [diff] [blame^] | 1 | # Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
Tom Wai-Hong Tam | 4895883 | 2011-12-30 10:16:57 +0800 | [diff] [blame] | 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | AUTHOR = "Chrome OS Team" |
| 6 | NAME = "firmware_CgptState" |
| 7 | PURPOSE = "Servo based executing the CgptState test on client side." |
| 8 | CRITERIA = "This test will fail if cgpt mis-behaves" |
Mike Truty | e51d436 | 2012-07-24 15:15:15 -0500 | [diff] [blame^] | 9 | SUITE = "faft" |
Tom Wai-Hong Tam | 4895883 | 2011-12-30 10:16:57 +0800 | [diff] [blame] | 10 | TIME = "LONG" |
| 11 | TEST_CATEGORY = "Functional" |
| 12 | TEST_CLASS = "firmware" |
| 13 | TEST_TYPE = "server" |
| 14 | |
| 15 | DOC = """ |
| 16 | This test triggers the CgptState test on client side. In the client |
| 17 | CgptState test, it set kernels A and B with different cgpt states |
| 18 | (priority, tries, successful) and checks their boot results. |
| 19 | |
| 20 | The test items and logic are now handled in client. This FAFT test |
| 21 | just handles the reboot logic. |
| 22 | See /usr/local/sbin/firmware/saft/cgpt_state.py for more detail. |
| 23 | """ |
| 24 | |
| 25 | def run_cgptstate(machine): |
| 26 | host = hosts.create_host(machine) |
| 27 | job.run_test("firmware_CgptState", host=host, cmdline_args=args, |
Mike Truty | e51d436 | 2012-07-24 15:15:15 -0500 | [diff] [blame^] | 28 | use_faft=True, disable_sysinfo=True, |
| 29 | dev_mode=False, tag="normal") |
Tom Wai-Hong Tam | 4895883 | 2011-12-30 10:16:57 +0800 | [diff] [blame] | 30 | |
| 31 | parallel_simple(run_cgptstate, machines) |