| # Copyright 2016 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 = "Chrome OS Team" |
| NAME = "platform_Flashrom" |
| PURPOSE = "Test flashrom in chromeos-firmwareupdate." |
| ATTRIBUTES = "suite:faft_flashrom" |
| TIME = "SHORT" |
| TEST_CATEGORY = "Functional" |
| TEST_CLASS = "platform" |
| TEST_TYPE = "server" |
| DEPENDENCIES = "flashrom, servo" |
| |
| DOC = """ |
| This test should be executed on one board per type and on every FSI image to |
| ensure flashrom and chromeos-firmwareupdate is working. |
| """ |
| |
| args_dict = utils.args_to_dict(args) |
| servo_args = hosts.CrosHost.get_servo_arguments(args_dict) |
| |
| def run_flashrom(machine): |
| host = hosts.create_host(machine, servo_args=servo_args) |
| job.run_test("platform_Flashrom", host=host, cmdline_args=args) |
| |
| parallel_simple(run_flashrom, machines) |