blob: 636de792fd66170ea4f0611f64aad70b95d39ce6 [file] [log] [blame]
# Copyright 2014 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.
AUTHOR = ", chromeos-power"
NAME = "power_DeferForFlashrom"
TEST_TYPE = "server"
SUITE = "power_build"
DOC = """
This test verifies that flashrom creates a lockfile while performing
potentially-destructive write operations and that powerd defers suspend or
reboot requests while the lockfile exists.
It fails if:
1. powerd suspends or reboots the system while flashrom is running instead of
waiting until it's exited.
2. After flashrom exits, powerd fails to honor pending suspend or reboot
3. The system fails to resume or come back up after rebooting.
def run(machine):
job.run_test("power_DeferForFlashrom", host=hosts.create_host(machine))
parallel_simple(run, machines)