• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 = "Chrome OS 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, powerplay"
16
17DOC = """
18This test collects and reports the power consumtion data during hibernate state.
19"""
20
21args_dict = utils.args_to_dict(args)
22servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
23
24def run(machine):
25    hibernate_length = 14400
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='4hr')
30
31parallel_simple(run, machines)
32