• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.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."
11TIME = "SHORT"
12TEST_CATEGORY = "Functional"
13TEST_CLASS = "firmware"
14TEST_TYPE = "server"
15JOB_RETRIES = 2
16
17DOC = """
18This test checks that all RPC functions on all subsystems are connected,
19and that they roughly work as expected.
20
21This control file should not be automatically run.
22Instead, each subsystem has its own control file.
23That way, issues occurring in a particular subsystem will be easy to spot.
24This control file is, however, useful for manual testing.
25
26"""
27
28args_dict = utils.args_to_dict(args)
29servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
30
31def run_faftrpc(machine):
32    host = hosts.create_host(machine, servo_args=servo_args)
33    job.run_test("firmware_FAFTRPC",
34                 host=host,
35                 cmdline_args=args,
36                 disable_sysinfo=True,
37                 category_under_test="*"
38                 )
39
40parallel_simple(run_faftrpc, machines)
41