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.disabled" 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" 15# Disable this test until it can be fixed: http://b/171595666 16# ATTRIBUTES = "suite:wilco_bve" 17 18DOC = """ 19This test verifies the USB power output when the device is off with the 20DeviceUsbPowerShareEnabled policy set. If the policy is set to True or 21not set, power should be provided. If the policy is set to False power 22should not be provided. 23 24""" 25 26client_test = 'policy_WilcoUSBPowershare' 27case = False 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('policy_WilcoServerUSBPowershare', host=host, 34 client_test=client_test, case=case) 35 36parallel_simple(run, machines) 37