1 # Copyright (c) 2015 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 = "chromeos-moblab (a] google.com" 6 NAME = "moblab_DummyServerSuite" 7 PURPOSE = "Test that Moblab can run the Dummy Server suite." 8 ATTRIBUTES = "suite:moblab_quick" 9 TIME = "MEDIUM" 10 TEST_CATEGORY = "Functional" 11 TEST_CLASS = "moblab" 12 TEST_TYPE = "server" 13 14 DOC = """ 15 Kicks off the Dummy Server suite on a Moblab host against the DUTs on its 16 subnet and ensures the suite completes successfully. 17 18 To invole this test locally: 19 test_that -b stumpy_moblab <remote> moblab_DummyServerSuite 20 --args="<ARGLIST>" 21 22 where ARGLIST is a whitespace separated list of the following key=value pairs. 23 Values pertaining to the test case include: 24 25 boto_path=<boto_path> path to the boto file to be installed on 26 the Moblab DUT. If not specified, the 27 boto file in the current home directory 28 will be installed if it exists. 29 image_storage_server=<server_name> Google Storage Bucket from which to 30 fetch test images from. If not 31 specified, the value will be fetched 32 from global_config. 33 """ 34 from autotest_lib.client.common_lib import utils 35 36 def run(machine): 37 host = hosts.create_host(machine) 38 args_dict = utils.args_to_dict(args) 39 job.run_test('moblab_RunSuite', host=host, suite_name='dummy_server', 40 **args_dict) 41 42 parallel_simple(run, machines) 43