blob: ab18538eb56059b4080ad944d40894f2d81549f8 [file] [log] [blame]
# Copyright (c) 2019 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from autotest_lib.server import utils
AUTHOR = "rzakarian"
NAME = "policy_WilcoServerUSBPowershare.not_set"
CRITERIA = "This test will fail if servo does not work as expected."
TEST_CLASS = "enterprise"
TEST_TYPE = "server"
ATTRIBUTES = "suite:wilco_bve"
DOC = """
This test verifies the USB power output when the device is off with the
DeviceUsbPowerShareEnabled policy set. If the policy is set to True or
not set, power should be provided. If the policy is set to False power
should not be provided.
client_test = 'policy_WilcoUSBPowershare'
case = None
args_dict = utils.args_to_dict(args)
servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
def run(machine):
host = hosts.create_host(machine, servo_args=servo_args)
job.run_test('policy_WilcoServerUSBPowershare', host=host,
client_test=client_test, case=case)
parallel_simple(run, machines)