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" 10 11DOC = """ 12This test verifies that flashrom creates a lockfile while performing 13potentially-destructive write operations and that powerd defers suspend or 14reboot requests while the lockfile exists. 15 16It fails if: 171. powerd suspends or reboots the system while flashrom is running instead of 18 waiting until it's exited. 192. After flashrom exits, powerd fails to honor pending suspend or reboot 20 requests. 213. The system fails to resume or come back up after rebooting. 22""" 23 24def run(machine): 25 job.run_test("power_DeferForFlashrom", host=hosts.create_host(machine)) 26 27parallel_simple(run, machines) 28