• 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"
14MAX_RESULT_SIZE_KB = 6000
15
16DOC = """
17This is a helper test that will succeed.
18"""
19
20from autotest_lib.client.common_lib import utils
21
22try:
23    from chromite.lib import metrics
24except ImportError:
25    metrics = utils.metrics_mock
26
27
28def run(machine):
29    job.run_test('dummy_PassServer',
30                 host=hosts.create_host(machine))
31
32m = 'chromeos/autotest/infra_benchmark/dummy_pass_server/duration'
33with metrics.SecondsTimer(m, fields={'success': False}) as c:
34    parallel_simple(run, machines)
35    c['success'] = True
36