| # Copyright 2018 The Chromium OS Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| AUTHOR = "dhaddock, Chromium OS" |
| NAME = "autoupdate_P2P.too_many_attempts.delta" |
| PURPOSE = "Test autoupdate via peer to peer(P2P)." |
| TIME = "MEDIUM" |
| TEST_CATEGORY = "Functional" |
| TEST_CLASS = "platform" |
| TEST_TYPE = "server" |
| ATTRIBUTES = "suite:au-p2p" |
| DOC = """ |
| This tests autoupdate between two devices via peer to peer is disabled when |
| they have tried more than 10 times. |
| |
| """ |
| |
| def run(machine): |
| host = hosts.create_host(machine) |
| companions = hosts.create_companion_hosts(companion_hosts) |
| job.run_test('autoupdate_P2P', host=host, companions=companions, |
| too_many_attempts=True) |
| |
| job.parallel_simple(run, machines) |
| |