aboutsummaryrefslogtreecommitdiff
path: root/server/site_tests/firmware_SoftwareSync/control.dev
blob: 9fcd7a15e2a8a8de6eea2f19f3f6694096c6db67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

from autotest_lib.server import utils

AUTHOR = "ChromeOS Team"
NAME = "firmware_SoftwareSync.dev"
PURPOSE = "Servo based EC software sync test"
CRITERIA = "This test will fail if EC software sync misbehalved"
ATTRIBUTES = "suite:faft_ec, suite:faft_ec_fw_qual, suite:faft_ec_tot"
TIME = "SHORT"
TEST_CATEGORY = "Functional"
TEST_CLASS = "firmware"
TEST_TYPE = "server"
DEPENDENCIES = "ec:cros, servo_state:WORKING"
PY_VERSION = 3

DOC = """
This test corrupts EC RW firmware body and checks software sync restores it.
"""

args_dict = utils.args_to_dict(args)
servo_args = hosts.CrosHost.get_servo_arguments(args_dict)

def run_softwaresync(machine):
    host = hosts.create_host(machine, servo_args=servo_args)
    job.run_test("firmware_SoftwareSync", host=host, cmdline_args=args,
                 disable_sysinfo=True, dev_mode=True, tag="dev")

parallel_simple(run_softwaresync, machines)