• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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"
16REQUIRE_SSP = False
17
18DOC = """
19This test:
201. Checks for the default brightness after initial boot.
212. Changes the birghtness level to min (0%) and max (100%).
223. Checks for the brightness level after rebooting the device.
23
24The 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
28Example usage:
29test_that -b <board> <host> power_BrightnessResetAfterReboot
30"""
31
32def 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
37parallel_simple(run, machines)
38