blob: 5f15980c7ee6191a8175e8876513966fb588600b [file] [log] [blame]
# Copyright 2018 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_FlashErasers"
PURPOSE = "Test flashrom erasing blocks of various sizes."
ATTRIBUTES = "suite:faft_flashrom"
TEST_CATEGORY = "Functional"
TEST_CLASS = "platform"
TEST_TYPE = "server"
DEPENDENCIES = "flashrom, servo_state:WORKING"
DOC = """
This test should be executed on every flash chip and SPI controller
combination to ensure flashrom erase is working as expected.
args_dict = utils.args_to_dict(args)
servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
def run_flasherasers(machine):
host = hosts.create_host(machine, servo_args=servo_args)
job.run_test("platform_FlashErasers", host=host, cmdline_args=args)
parallel_simple(run_flasherasers, machines)