blob: 170fd0f203af013b721eaa511b53c3455f8d0f78 [file] [log] [blame]
# Copyright 2012 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import re
# Description
# This test measures the power draw during standby (S3).
# Test uses RTC wake to transistion from S3 to S0 every sample_hours for a total
# standby time of test_hours. The S3->S0 transistions are added to
# 1. Validate battery use
# 2. Guarantee that S3 was maintained (no external/false wake)
# 3. Create S3->S0->S3 transistions which more closely model user's interaction.
# Arguments:
# sample_hours: float, number of hours between charge use samples.
# test_hours: float, the number of hours to run the test.
# Test must meet the following criteria:
# Battery must contain ~20% of its charge.
# Must be run on battery power
# sample_hours > 0.1
# test_hours > sample_hours
NAME = "power_Standby"
METADATA = {
"contacts": ["cros-power-notifications@google.com"],
"author": "ChromeOS Team",
"bug_component": "b:1361410",
"criteria": "This test is a benchmark test",
"hw_agnostic": False,
}
ATTRIBUTES = ""
TEST_TYPE = "client"
SAMPLE_HOURS = 1.0
TEST_HOURS = 12.0
max_milliwatts_standby = 500.0
args_dict = utils.args_to_dict(args)
sample_hours = float(args_dict.get('sample_hours', SAMPLE_HOURS))
test_hours = float(args_dict.get('test_hours', TEST_HOURS))
pdash_note = args_dict.get('pdash_note', '')
job.run_test('power_Standby', sample_hours=sample_hours, test_hours=test_hours,
max_milliwatts_standby=max_milliwatts_standby,
pdash_note=pdash_note)