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 5 NAME = "kernel_ltp" 6 AUTHOR = "The Chromium OS Authors,chromeos-kernel-test (a] google.com" 7 TIME = "MEDIUM" 8 TEST_CATEGORY = "FUNCTIONAL" 9 TEST_CLASS = "KERNEL" 10 TEST_TYPE = "CLIENT" 11 DOC = """ 12 Convenience control file for running one kernel test. 13 Pass the --args to test_that as follows: 14 15 test_that ${MACHINE_IP} 16 -args "test_names=cros_unittest_sample,cros_sample_getcwd02" \ 17 'f:.*control.select_tests' 18 """ 19 20 kwargs = utils.args_to_dict(args) 21 test_names = kwargs.get('test_names', None) 22 if not test_names: 23 raise error.TestFail('You are required to supply ' 24 '--args "test_names=xxxx" when calling ' 25 'test_that with control.select_tests') 26 27 job.run_test('kernel_LTP', select_tests=test_names) 28