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.all" 9PURPOSE = "Verify that the RPC server, and all RPC functions, work as expected." 10CRITERIA = "This test will fail if the FAFT RPC system is not set up correctly." 11ATTRIBUTES = "suite:infra_qual, suite:py3-beta" 12DEPENDENCIES = "servo_state:WORKING" 13TIME = "SHORT" 14TEST_CATEGORY = "Functional" 15TEST_CLASS = "firmware" 16TEST_TYPE = "server" 17PY_VERSION = 3 18 19DOC = """ 20This test checks that all RPC functions on all subsystems are connected, 21and that they roughly work as expected. 22 23This control file should not be automatically run. 24Instead, each subsystem has its own control file. 25That way, issues occurring in a particular subsystem will be easy to spot. 26This control file is, however, useful for manual testing. 27 28""" 29 30args_dict = utils.args_to_dict(args) 31servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 32 33def run_faftrpc(machine): 34 host = hosts.create_host(machine, servo_args=servo_args) 35 job.run_test("firmware_FAFTRPC", 36 host=host, 37 cmdline_args=args, 38 disable_sysinfo=True, 39 category_under_test="*" 40 ) 41 42parallel_simple(run_faftrpc, machines) 43