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