• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2020 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 = "aluo"
8NAME = "firmware_FAFTModeTransitions.all_single"
9PURPOSE = "Test FAFT ability to switch between different modes"
10CRITERIA = "This test will fail if FAFT can not switch between any two modes."
11ATTRIBUTES = "suite:faft_smoke"
12TIME = "MEDIUM"
13TEST_CATEGORY = "Functional"
14TEST_CLASS = "firmware"
15TEST_TYPE = "server"
16JOB_RETRIES = 4
17
18DOC = """
19This test checks the following mode transitions:
20  - Transition between any two modes (single transition)
21"""
22
23args_dict = utils.args_to_dict(args)
24servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
25
26
27def run_faftmodetransitions(machine):
28    host = hosts.create_host(machine, servo_args=servo_args)
29
30    job.run_test(
31            "firmware_FAFTModeTransitions",
32            host=host,
33            cmdline_args=args,
34            disable_sysinfo=True,
35            mode_seq=[
36                    "normal", "dev", "rec", "normal", "rec", "dev", "normal"
37            ])
38
39
40parallel_simple(run_faftmodetransitions, machines)
41