| # 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:])) |