blob: 1b856ef3496b6e565ffc6054010a78a1e9195b7d [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.
# Unplug AC before run this test.
#
# This test will pass only if all of the following conditions occur:
# - Find one or more batteries.
# - One of batteries is discharging.
#
# This test will fail if all of the following conditions occur:
# - Find one or more ACs.
# - One of ACs is online.
NAME = "power_ProbeDriver.probe_bat"
METADATA = {
"contacts": ["cros-power-notifications@google.com"],
"author": "ChromeOS Team",
"bug_component": "b:1361410",
"criteria": "This test is a functional test",
"hw_agnostic": False,
}
ATTRIBUTES = ""
TEST_TYPE = "client"
job.run_test('power_ProbeDriver', test_which='Battery', tag='.'.join(NAME.split('.')[1:]))