Home | History | Annotate | Download | only in platform_CloseOpenLid
      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 from autotest_lib.server import utils
      6 
      7 AUTHOR = "Chrome OS Team"
      8 NAME = "platform_CloseOpenLid"
      9 PURPOSE = "Test suspend/resume in response to lid events."
     10 TIME = "LONG"
     11 TEST_CATEGORY = "Functional"
     12 TEST_CLASS = "platform"
     13 TEST_TYPE = "server"
     14 
     15 DOC = """
     16 This test uses servo to simulate lid close and open events. Device state is
     17 verified by pinging."""
     18 
     19 args_dict = utils.args_to_dict(args)
     20 servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
     21 
     22 def run(machine):
     23     host = hosts.create_host(machine, servo_args=servo_args)
     24     job.run_test("platform_CloseOpenLid", host=host, disable_sysinfo=True)
     25 
     26 parallel_simple(run, machines)
     27