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 5AUTHOR = 'lgoodby' 6NAME = 'autotest_SyncCount' 7SYNC_COUNT = 2 8TIME = 'MEDIUM' 9TEST_TYPE = 'Server' 10ATTRIBUTES = 'suite:push_to_prod, suite:bvt-perbuild' 11 12DOC = """ 13Tests that SYNC_COUNT schedules 2 hosts. 14""" 15 16from autotest_lib.server import utils as server_utils 17 18 19def run(ntuple): 20 job.run_test('autotest_SyncCount', ntuple=ntuple) 21 22ntuples, failures = server_utils.form_ntuples_from_machines( 23 machines, SYNC_COUNT) 24 25for 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 31job.parallel_simple(run, ntuples, log=False) 32