xref: /aosp_15_r20/external/autotest/server/site_tests/autoupdate_Periodic/control.delta (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1# Copyright 2020 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
5AUTHOR = "dhaddock, Chromium OS"
6NAME = "autoupdate_Periodic.delta"
7TIME = "MEDIUM"
8PURPOSE = "Tests periodic update with test-update-check-interval-timeout pref."
9TEST_CATEGORY = "Functional"
10TEST_CLASS = "platform"
11TEST_TYPE = "server"
12ATTRIBUTES = "suite:au-perbuild"
13PY_VERSION = 3
14DOC = """
15Tests that the DUT makes periodic update checks. On test images, periodic
16checks are disabled but by using a pref (test-update-check-interval-timeout) we
17can simulate it. We do periodic checks 5 seconds apart. The first will return
18no update, the second will return an update.
19"""
20
21from autotest_lib.client.common_lib import utils
22
23args_dict = utils.args_to_dict(args)
24
25def run(machine):
26    host = hosts.create_host(machine)
27    job.run_test('autoupdate_Periodic', host=host, full_payload=False,
28                 **args_dict)
29
30job.parallel_simple(run, machines)
31