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 = "gredelston, 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" 12TIME = "SHORT" 13TEST_CATEGORY = "Functional" 14TEST_CLASS = "firmware" 15TEST_TYPE = "server" 16JOB_RETRIES = 2 17 18DOC = """ 19This test checks that the client-side methods function properly: 20 quit(): tells the remote end to quit, then disconnects. 21 disconnect(): just disconnects. 22 23""" 24 25args_dict = utils.args_to_dict(args) 26servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 27 28def run_faftrpc(machine): 29 host = hosts.create_host(machine, servo_args=servo_args) 30 job.run_test("firmware_FAFTRPC", 31 host=host, 32 cmdline_args=args, 33 disable_sysinfo=True, 34 category_under_test='' 35 ) 36 37parallel_simple(run_faftrpc, machines) 38