Home | History | Annotate | Download | only in power_BrightnessResetAfterReboot
      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 
      5 from autotest_lib.server import utils
      6 
      7 AUTHOR = "Chrome OS Team"
      8 NAME = "power_BrightnessResetAfterReboot"
      9 PURPOSE = "default brightness test."
     10 CRITERIA = "This test will fail if unable to set the default brightness after reboot."
     11 TIME = "SHORT"
     12 TEST_CATEGORY = "Functional"
     13 TEST_CLASS = "power"
     14 TEST_TYPE = "server"
     15 ATTRIBUTES = "suite:bvt-perbuild, suite:partners"
     16 SUITE = "bvt-perbuild, partners"
     17 REQUIRE_SSP = False
     18 
     19 DOC = """
     20 This test:
     21 1. Checks for the default brightness after initial boot.
     22 2. Changes the birghtness level to min (0%) and max (100%).
     23 3. Checks for the brightness level after rebooting the device.
     24 
     25 The 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 
     29 Example usage:
     30 test_that -b <board> <host> power_BrightnessResetAfterReboot
     31 """
     32 
     33 def 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 
     38 parallel_simple(run, machines)
     39