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 REQUIRE_SSP = False
     17 
     18 DOC = """
     19 This test:
     20 1. Checks for the default brightness after initial boot.
     21 2. Changes the birghtness level to min (0%) and max (100%).
     22 3. Checks for the brightness level after rebooting the device.
     23 
     24 The test fails if:
     25 -Device not able to change brightness to min and max levels.
     26 -Device not able to set the brightness level to default after reboot.
     27 
     28 Example usage:
     29 test_that -b <board> <host> power_BrightnessResetAfterReboot
     30 """
     31 
     32 def run(machine):
     33     host = hosts.create_host(machine)
     34     job.run_test("power_BrightnessResetAfterReboot", host=host,
     35                  disable_sysinfo=True, client_autotest="desktopui_SimpleLogin")
     36 
     37 parallel_simple(run, machines)
     38