• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 # Copyright 2018 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 AUTHOR = "dhaddock, Chromium OS"
6 NAME = "autoupdate_P2P.too_many_attempts.delta"
7 PURPOSE = "Test autoupdate via peer to peer(P2P)."
8 TIME = "MEDIUM"
9 TEST_CATEGORY = "Functional"
10 TEST_CLASS = "platform"
11 TEST_TYPE = "server"
12 ATTRIBUTES = "suite:au-perbuild"
13 SYNC_COUNT = 2
14 DOC = """
15 This tests autoupdate between two devices via peer to peer is disabled when
16 they have tried more than 10 times.
17 
18 """
19 
20 from autotest_lib.server import utils as server_utils
21 
22 def run(ntuple):
23     host_list = []
24     for machine in ntuple:
25         host_list.append(hosts.create_host(machine))
26     job.run_test('autoupdate_P2P', hosts=host_list, too_many_attempts=True)
27 
28 ntuples, failures = server_utils.form_ntuples_from_machines(machines,
29                                                             SYNC_COUNT)
30 
31 # Use log=False in parallel_simple to avoid an exception in setting up
32 # the incremental parser when SYNC_COUNT > 1.
33 job.parallel_simple(run, ntuples, log=False)
34