30 lines
		
	
	
		
			943 B
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			943 B
		
	
	
	
		
			Plaintext
		
	
	
	
| # 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"
 | |
| TIME = "SHORT"
 | |
| 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)
 |