1# Copyright (c) 2019 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 = "rzakarian"
8NAME = "policy_DeviceBootOnAcEnabled.false"
9CRITERIA = "This test will fail if servo does not work as expected."
10TIME = "LONG"
11TEST_CATEGORY = "General"
12TEST_CLASS = "enterprise"
13TEST_TYPE = "server"
14DEPENDENCIES = "servo_state:WORKING"
15
16DOC = """
17Test that verifies DeviceBootOnAcEnabled policy.
18If this policy is set to true then boot on AC will always be enabled.
19If this policy is set to false, boot on AC will always be disabled.
20If this policy is left unset, boot on AC is disabled.
21
22"""
23
24case = False
25args_dict = utils.args_to_dict(args)
26servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
27
28def run(machine):
29    host = hosts.create_host(machine, servo_args=servo_args)
30    job.run_test('policy_DeviceBootOnAcEnabled', host=host, case=case)
31
32parallel_simple(run, machines)
33