• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2019 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 = "rzakarian"
8NAME = "policy_WilcoServerUSBPowershare.enabled"
9CRITERIA = "This test will fail if servo does not work as expected."
10TIME = "LONG"
11TEST_CATEGORY = "General"
12TEST_CLASS = "enterprise"
13TEST_TYPE = "server"
14DEPENDENCIES = "servo_state:WORKING"
15ATTRIBUTES = "suite:wilco_bve"
16
17DOC = """
18This test verifies the USB power output when the device is off with the
19DeviceUsbPowerShareEnabled policy set. If the policy is set to True or
20not set, power should be provided. If the policy is set to False power
21should not be provided.
22
23"""
24
25client_test = 'policy_WilcoUSBPowershare'
26case = True
27args_dict = utils.args_to_dict(args)
28servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
29
30def run(machine):
31    host = hosts.create_host(machine, servo_args=servo_args)
32    job.run_test('policy_WilcoServerUSBPowershare', host=host,
33                 client_test=client_test, case=case)
34
35parallel_simple(run, machines)
36