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