Home | History | Annotate | Download | only in firmware_StandbyPowerConsumption
      1 # Copyright 2016 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 = "firmware_StandbyPowerConsumption.30min"
      9 PURPOSE = "Collect power consumption during hibernate."
     10 TIME = "LONG"
     11 TEST_CATEGORY = "Performance"
     12 TEST_CLASS = "firmware"
     13 TEST_TYPE = "server"
     14 ATTRIBUTES = "suite:powerplay"
     15 DEPENDENCIES = "servo, powerplay"
     16 
     17 DOC = """
     18 This test collects and reports the power consumtion data during hibernate state.
     19 """
     20 
     21 args_dict = utils.args_to_dict(args)
     22 servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
     23 
     24 def run(machine):
     25     hibernate_length = 1800
     26     host = hosts.create_host(machine, servo_args=servo_args)
     27     job.run_test('firmware_StandbyPowerConsumption', host=host,
     28                  hibernate_length=hibernate_length, cmdline_args=args,
     29                  tag='30min')
     30 
     31 parallel_simple(run, machines)
     32