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