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 5from autotest_lib.server import utils 6 7AUTHOR = "ChromeOS Team" 8NAME = "firmware_StandbyPowerConsumption.4hr" 9PURPOSE = "Collect power consumption during hibernate." 10TIME = "LONG" 11TEST_CATEGORY = "Performance" 12TEST_CLASS = "firmware" 13TEST_TYPE = "server" 14ATTRIBUTES = "suite:powerplay" 15DEPENDENCIES = "servo_state:WORKING, powerplay" 16PY_VERSION = 3 17 18DOC = """ 19This test collects and reports the power consumtion data during hibernate state. 20""" 21 22args_dict = utils.args_to_dict(args) 23servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 24 25def run(machine): 26 hibernate_length = 14400 27 host = hosts.create_host(machine, servo_args=servo_args) 28 job.run_test('firmware_StandbyPowerConsumption', host=host, 29 hibernate_length=hibernate_length, cmdline_args=args, 30 tag='4hr') 31 32parallel_simple(run, machines) 33