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