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 = "kmshelton, waihong" 8NAME = "firmware_FAFTRPC.client" 9PURPOSE = "Verify that the faft rpc client side methods work as expected." 10CRITERIA = "This test will fail if the faft rpc client code is broken." 11ATTRIBUTES = "suite:faft_smoke" 12DEPENDENCIES = "servo_state:WORKING" 13TIME = "SHORT" 14TEST_CATEGORY = "Functional" 15TEST_CLASS = "firmware" 16TEST_TYPE = "server" 17PY_VERSION = 3 18 19DOC = """ 20This test checks that the client-side methods function properly: 21 quit(): tells the remote end to quit, then disconnects. 22 disconnect(): just disconnects. 23 24""" 25 26args_dict = utils.args_to_dict(args) 27servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 28 29def run_faftrpc(machine): 30 host = hosts.create_host(machine, servo_args=servo_args) 31 job.run_test("firmware_FAFTRPC", 32 host=host, 33 cmdline_args=args, 34 disable_sysinfo=True, 35 category_under_test='' 36 ) 37 38parallel_simple(run_faftrpc, machines) 39