• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2021 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 = "ChromeOS Team"
6NAME = "power_LoadTest.FDO_eth_fast"
7PURPOSE = "Test health of power load test functionality."
8CRITERIA = "This test is a benchmark."
9TIME = "MEDIUM"
10TEST_CATEGORY = "Benchmark"
11TEST_CLASS = "power"
12TEST_TYPE = "client"
13PY_VERSION = 3
14
15DOC = """
16This test runs a load test consisting of cycling though web pages, playing
17videos, etc. and measures battery power draw. The duration of this test is
18determined by loop_time * loop_cnt.
19
20
21This version of test allows:
22  - AC is connected.
23  - Ethernet is connected.
24
25This control file is simply meant to simulate the various aspects of the test
26to validate mechanics are in good health (login, external website access).
27
28It ignores whether wired access (check_network=False) or AC is
29connected(ac_ok=True).
30
31For reasons above and reduced runtime (3min) it will NOT produce valid power
32consumption results for the 60/20/10/10 load and therefore should NOT be used
33for any battery life estimations.
34
35"FDO" is short for "force discharge optional." Test will use EC command to
36force DUT to discharge. If it fails, then use AC as the power source.
37"""
38
39# TODO (bleung): Find a way to do automatic Facebook login for test account.
40
41loop_time = 180
42loop_count = 1
43
44args_dict = utils.args_to_dict(args)
45pdash_note = args_dict.get('pdash_note', '')
46job.run_test('power_LoadTest', loop_time=loop_time, loop_count=loop_count,
47             test_low_batt_p=5, ac_ok=True, force_discharge='optional',
48             check_network=False, tag=NAME.split('.')[1],
49             pdash_note=pdash_note)
50