Home | History | Annotate | Download | only in platform_FullyChargedPowerStatus
      1 # Copyright (c) 2015 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 = "ChromeOS team "
      8 NAME = "platform_FullyChargedPowerStatus"
      9 PURPOSE = "Check power status after suspend, unplug, plug and resumed"
     10 CRITERIA = "This test will fail if power status disply as no on AC, discharging as state & less than 95%."
     11 TIME = "SHORT"
     12 TEST_CATEGORY = "Functional"
     13 TEST_CLASS = "platform"
     14 TEST_TYPE = "server"
     15 # ATTRIBUTES = "suite:bvt-perbuild, suite:partners"
     16 DEPENDENCIES = "rpm, power:battery"
     17 
     18 DOC = """
     19 This test check fully charged power status after suspend and resume the device
     20 with power status changed before, between and after as follows: False, False, True
     21 
     22 The test fails if
     23 - online is 'no'
     24 - power status is 'discharging'
     25 - display percentage is < 95%
     26 """
     27 
     28 args_dict = utils.args_to_dict(args)
     29 
     30 def run(machine):
     31     host = hosts.create_host(machine)
     32 
     33     power_status_sets = [(False, False, True)]
     34 
     35     job.run_test("platform_FullyChargedPowerStatus", host=host,
     36                  disable_sysinfo=True, power_status_sets=power_status_sets)
     37 
     38 parallel_simple(run, machines)
     39