1 # Copyright 2018 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 5 from autotest_lib.server import utils 6 7 AUTHOR = 'timkovich' 8 NAME = 'policy_ExternalStorageServer.Disabled' 9 TIME = 'SHORT' 10 TEST_CATEGORY = 'General' 11 TEST_CLASS = 'enterprise' 12 TEST_TYPE = 'server' 13 ATTRIBUTES = 'suite:ent-nightly, suite:policy' 14 DEPENDENCIES = 'servo' 15 16 DOC = """ 17 This test connects the servo repair USB stick to the DUT, then runs the 18 client-side tests for the ExternalStorageDisabled policy. At the end of the 19 test it disconnects the USB stick. 20 21 """ 22 23 args_dict = utils.args_to_dict(args) 24 servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 25 26 def run(machine): 27 host = hosts.create_host(machine, servo_args=servo_args) 28 job.run_test('policy_ExternalStorageServer', 29 host=host, 30 client_test='policy_ExternalStorageDisabled') 31 32 parallel_simple(run, machines) 33