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.ec" 9PURPOSE = "Verify that the RPC system, and all EC RPCs, work as expected." 10CRITERIA = "This test will fail if the EC system is not set up correctly." 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 all RPC functions on the EC subsystem are connected, 21and that they roughly work as expected. 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="ec", 35 reboot_after_completion=True 36 ) 37 38parallel_simple(run_faftrpc, machines) 39