blob: c8d4693a16cdf7a92ce955b16814a542b6712395 [file] [log] [blame]
# Copyright 2010 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Description
# This is a sample test that probes sysfs and makes sure that AC driver
# is loaded and functioning.
# Plug AC before run this test. This test will pass only if
# all of the following conditions occur:
# - Find exactly one AC."
# - AC is online."
# This test will fail if all of the following conditions occur:
# - Find one or more batteries.
# - One of batteries is discharging.",
NAME = "power_ProbeDriver.probe_ac"
METADATA = {
"contacts": ["cros-power-notifications@google.com"],
"bug_component": "b:1361410",
"criteria": "This test is a functional test",
"hw_agnostic": False,
}
ATTRIBUTES = ("suite:power_build, group:release-health, release-health_power")
TEST_TYPE = "client"
job.run_test('power_ProbeDriver', test_which='Mains', tag='.'.join(NAME.split('.')[1:]))