1 # Copyright 2016 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 = 'lgoodby' 6 NAME = 'autotest_SyncCount' 7 SYNC_COUNT = 2 8 TIME = 'MEDIUM' 9 TEST_TYPE = 'Server' 10 ATTRIBUTES = 'suite:push_to_prod' 11 12 DOC = """ 13 Tests that SYNC_COUNT schedules 2 hosts. 14 """ 15 16 from autotest_lib.server import utils as server_utils 17 18 19 def run(ntuple): 20 job.run_test('autotest_SyncCount', ntuple=ntuple) 21 22 ntuples, failures = server_utils.form_ntuples_from_machines( 23 machines, SYNC_COUNT) 24 25 for failure in failures: 26 job.record('FAIL', None, str(failure)) 27 28 # Use log=False in parallel_simple to avoid an exception in setting up 29 # the incremental parser when SYNC_COUNT > 1. 30 31 job.parallel_simple(run, ntuples, log=False) 32