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