1# Copyright 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 = "louiscollard, apronin" 8NAME = "firmware_Cr50VirtualNVRamServer.faft_cr50_tot" 9TIME = "SHORT" 10TEST_CATEGORY = "Functional" 11TEST_CLASS = "firmware" 12TEST_TYPE = "server" 13ATTRIBUTES = "suite:faft_cr50_tot" 14JOB_RETRIES = 1 15 16DOC = """ 17This test clears the TPM if necessary, the runs a client side test that checks 18Virtual NVRAM functionality in cr50. Finally, it clears the TPM again. 19Every time the TPM is cleared, the system is rebooted. 20 21This test is applicable when using ToT cr50 module. 22TODO(crbug.com/1014572) Drop this control file once suites can inject test args. 23""" 24 25if 'args_dict' not in locals(): 26 args_dict = {} 27 28args_dict.update(utils.args_to_dict(args)) 29 30# crbug.com/1014572: Inject test args. 31args_dict['tot_test_run'] = 'true' 32 33def run_test(machine): 34 host = hosts.create_host(machine) 35 job.run_test('firmware_Cr50VirtualNVRamServer', host=host) 36 37parallel_simple(run_test, machines) 38