• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2020 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
5AUTHOR = "puthik"
6NAME = "power_LW.power_LoadTest_1hour"
7TIME = "LONG"
8TEST_CATEGORY = "Benchmark"
9TEST_CLASS = "power"
10TEST_TYPE = "server"
11ATTRIBUTES = "suite:power_dashboard"
12
13DOC = """
14Control file for running power_LoadTest.1hour in power lab.
15"""
16
17from autotest_lib.client.common_lib import utils
18
19args_dict = utils.args_to_dict(args)
20test = 'power_LoadTest'
21args = {
22    'pdash_note': args_dict.get('pdash_note', ''),
23    'tag' : '1hour_PLW',
24    'loop_time' : 3600,
25    'loop_count' : 1,
26    'test_low_batt_p' : 6,
27}
28
29def run(machine):
30    host = hosts.create_host(machine)
31    job.run_test("power_LW", host=host, test=test, args=args,
32                 machine=machine, tag=NAME.split('.')[1])
33
34parallel_simple(run, machines)
35