1# Copyright (c) 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
5from autotest_lib.server import utils
6
7AUTHOR = "Chrome OS Team"
8NAME = "power_BrightnessResetAfterReboot"
9PURPOSE = "default brightness test."
10CRITERIA = "This test will fail if unable to set the default brightness after reboot."
11TIME = "SHORT"
12TEST_CATEGORY = "Functional"
13TEST_CLASS = "power"
14TEST_TYPE = "server"
15ATTRIBUTES = "suite:bvt-perbuild, suite:partners"
16SUITE = "bvt-perbuild, partners"
17REQUIRE_SSP = False
18
19DOC = """
20This test:
211. Checks for the default brightness after initial boot.
222. Changes the birghtness level to min (0%) and max (100%).
233. Checks for the brightness level after rebooting the device.
24
25The test fails if:
26-Device not able to change brightness to min and max levels.
27-Device not able to set the brightness level to default after reboot.
28
29Example usage:
30test_that -b <board> <host> power_BrightnessResetAfterReboot
31"""
32
33def run(machine):
34    host = hosts.create_host(machine)
35    job.run_test("power_BrightnessResetAfterReboot", host=host,
36                 disable_sysinfo=True, client_autotest="desktopui_SimpleLogin")
37
38parallel_simple(run, machines)
39