1 # Copyright 2016 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 = "harpreet (a] chromium.org" 8 NAME = "enterprise_CFM_Sanity" 9 TIME = "SHORT" 10 TEST_CATEGORY = "Functional" 11 TEST_CLASS = "enterprise" 12 TEST_TYPE = "server" 13 ATTRIBUTES = "suite:hotrod" 14 JOB_RETRIES = 3 15 16 DOC = """ 17 This test clears the TPM if necessary, enrolls the device as a remora device 18 and runs a series of test actions and performs verifications to make sure CFM 19 enrolled devices behave as expected. It clears the TPM at the end of the test 20 run. Every time the TPM is cleared, the system is rebooted. 21 """ 22 23 args_dict = utils.args_to_dict(args) 24 servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 25 26 def run_test(machine): 27 host = hosts.create_host(machine, servo_args=servo_args) 28 job.run_test('enterprise_CFM_Sanity', host=host) 29 30 31 parallel_simple(run_test, machines) 32