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