• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 = "kyleshima, Chromium OS"
6NAME = "rlz_CheckPing.should_not_send_ping"
7PURPOSE = "Test rlz related vpd setting: should_send_rlz_ping."
8TIME = "Short"
9TEST_CATEGORY = "Functional"
10TEST_CLASS = "platform"
11TEST_TYPE = "server"
12ATTRIBUTES = "suite:rlz"
13DOC = """
14This tests that no first-use event (CAF) ping is sent if the
15should_send_rlz_ping vpd setting has not been set to 1. The install event
16(CAI) ping will still be sent once the ping delay has elapsed.
17"""
18
19import datetime
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(
28        'rlz_CheckPing', host=host,
29        rlz_embargo_end_date=(
30            datetime.date.today() - datetime.timedelta(days=2)),
31        should_send_rlz_ping=0, **args_dict)
32
33job.parallel_simple(run, machines)
34