1# Copyright (c) 2015 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 5from autotest_lib.server import utils 6 7AUTHOR = "ChromeOS Team" 8NAME = "firmware_ECLidShutdown" 9PURPOSE = "Verify functionality of DUT with GBB_FLAG_DISABLE_LID_SHUTDOWN" 10CRITERIA = "This test will ensure disable lid shutdown GBB flag working" 11ATTRIBUTES = "suite:faft_ec, suite:faft_ec_fw_qual, suite:faft_ec_tot" 12TIME = "SHORT" 13TEST_CATEGORY = "Functional" 14TEST_CLASS = "firmware" 15TEST_TYPE = "server" 16JOB_RETRIES = 0 17DEPENDENCIES = "ec:cros, servo_state:WORKING" 18PY_VERSION = 3 19 20DOC = """ 21This test checks the functionality of the disable lid shutdown GBB flag. 22 - Verifies the device does shutdown when verified boot starts while the lid 23 is closed and GBB_FLAG_DISABLE_LID_SHUTDOWN is disabled. 24 - Verifies the device does not shutdown when verified boot starts while the 25 lid is closed and GBB_FLAG_DISABLE_LID_SHUTDOWN is enabled. 26""" 27 28args_dict = utils.args_to_dict(args) 29servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 30 31def run_eclidshutdown(machine): 32 host = hosts.create_host(machine, servo_args=servo_args) 33 job.run_test("firmware_ECLidShutdown", host=host, cmdline_args=args, 34 disable_sysinfo=True) 35 36parallel_simple(run_eclidshutdown, machines) 37