1 # Copyright 2014 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 5 AUTHOR = "derat (a] chromium.org, chromeos-power" 6 NAME = "power_DeferForFlashrom" 7 TIME = "SHORT" 8 TEST_TYPE = "server" 9 ATTRIBUTES = "suite:power_build" 10 SUITE = "power_build" 11 12 DOC = """ 13 This test verifies that flashrom creates a lockfile while performing 14 potentially-destructive write operations and that powerd defers suspend or 15 reboot requests while the lockfile exists. 16 17 It fails if: 18 1. powerd suspends or reboots the system while flashrom is running instead of 19 waiting until it's exited. 20 2. After flashrom exits, powerd fails to honor pending suspend or reboot 21 requests. 22 3. The system fails to resume or come back up after rebooting. 23 """ 24 25 def run(machine): 26 job.run_test("power_DeferForFlashrom", host=hosts.create_host(machine)) 27 28 parallel_simple(run, machines) 29