• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2013 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 = "Chrome OS Team"
6NAME = "dummy_PassServer"
7PURPOSE = "Demonstrate success methods of autotests."
8CRITERIA = "This test will always succeed."
9ATTRIBUTES = "suite:dummy_server"
10TIME = "SHORT"
11TEST_CATEGORY = "General"
12TEST_CLASS = "dummy"
13TEST_TYPE = "server"
14
15DOC = """
16This is a helper test that will succeed.
17"""
18
19from autotest_lib.client.common_lib import utils
20
21try:
22    from chromite.lib import metrics
23except ImportError:
24    metrics = utils.metrics_mock
25
26
27def run(machine):
28    job.run_test('dummy_PassServer',
29                 host=hosts.create_host(machine))
30
31m = 'chromeos/autotest/infra_benchmark/dummy_pass_server/duration'
32with metrics.SecondsTimer(m, fields={'success': False}) as c:
33    parallel_simple(run, machines)
34    c['success'] = True
35