xref: /aosp_15_r20/external/autotest/server/site_tests/platform_ServoPowerStateController/control.nousb (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
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 = "ChromeOS Team"
8NAME = "platform_ServoPowerStateController.USBUnplugged"
9PURPOSE = "Verify servo PowerStateController functions."
10CRITERIA = "This test will fail if servo does not work as expected."
11ATTRIBUTES = "suite:servo_lab"
12TIME = "LONG"
13TEST_CATEGORY = "Functional"
14TEST_CLASS = "platform"
15TEST_TYPE = "server"
16DEPENDENCIES = "servo_state:WORKING"
17PY_VERSION = 3
18
19DOC = """
20The test exercises these transitions:
21  normal mode -> off
22  off -> off
23  off -> recovery mode firmware screen
24  firmware screen -> off
25  off -> normal boot from internal storage
26"""
27
28args_dict = utils.args_to_dict(args)
29servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
30
31def run(machine):
32    host = hosts.create_host(machine, servo_args=servo_args)
33    job.run_test('platform_ServoPowerStateController', host=host,
34                 usb_available=False)
35
36parallel_simple(run, machines)
37