• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2012 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#
5# Test expects to be run on a jailbroken device in developer mode.
6
7from autotest_lib.server import utils
8
9AUTHOR = "Chrome OS Team"
10NAME = "platform_LongPressPower"
11PURPOSE = "Servo based ChromeOS functional tests."
12TIME = "LONG"
13TEST_CATEGORY = "Functional"
14TEST_CLASS = "platform"
15TEST_TYPE = "server"
16
17DOC = """
18This test uses servo to press and hold the device power button and uses ping
19to validate behavior.
20"""
21
22args_dict = utils.args_to_dict(args)
23servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
24
25def run(machine):
26    host = hosts.create_host(machine, servo_args=servo_args)
27    job.run_test("platform_LongPressPower", host=host, disable_sysinfo=True)
28
29parallel_simple(run, machines)
30