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.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:bvt-perbuild" 13 SYNC_COUNT = 2 14 DOC = """ 15 This tests autoupdate between two devices via peer to peer. 16 17 Since the test uses two different DUTs in the lab together it is more 18 difficult to debug at your desk. 19 20 Use the control.local to run this test locally. 21 22 """ 23 24 from autotest_lib.server import utils as server_utils 25 26 def run(ntuple): 27 host_list = [] 28 for machine in ntuple: 29 host_list.append(hosts.create_host(machine)) 30 job.run_test('autoupdate_P2P', hosts=host_list) 31 32 ntuples, failures = server_utils.form_ntuples_from_machines(machines, 33 SYNC_COUNT) 34 35 # Use log=False in parallel_simple to avoid an exception in setting up 36 # the incremental parser when SYNC_COUNT > 1. 37 job.parallel_simple(run, ntuples, log=False) 38