• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2014 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
5from autotest_lib.server import utils
6
7AUTHOR = "Chrome OS Team"
8NAME = "platform_ServoPowerStateController.USBPluggedin"
9PURPOSE = "Verify servo PowerStateController functions."
10CRITERIA = "This test will fail if servo does not work as expected."
11ATTRIBUTES = "suite:faft_bios, suite:faft_bios_ro_qual, suite:faft_bios_rw_qual, suite:faft_lv2, suite:faft_normal, suite:faft_bios_ec3po, suite:faft_bios_tot, suite:bvt-perbuild,suite:servo_lab, suite:labqual"
12DEPENDENCIES = "servo_state:WORKING"
13TIME = "LONG"
14TEST_CATEGORY = "Functional"
15TEST_CLASS = "platform"
16TEST_TYPE = "server"
17DEPENDENCIES = "servo_state:WORKING"
18
19DOC = """
20The test specifically exercises all the state transitions from control.nousb,
21plus these additional transitions:
22  normal mode -> off
23  off -> normal mode boot with USB stick plugged in
24  normal mode -> off
25  off -> recovery mode boot from USB
26  recovery mode -> off
27  off -> normal mode
28
29Note also that this test requires a USB stick with a test image be plugged in to
30the servo's usbkey port.
31"""
32
33args_dict = utils.args_to_dict(args)
34servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
35
36def run(machine):
37    host = hosts.create_host(machine, servo_args=servo_args)
38    job.run_test('platform_ServoPowerStateController', host=host,
39                 usb_available=True)
40
41parallel_simple(run, machines)
42