| # Copyright (c) 2013 The Chromium OS Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| NAME = "kernel_ltp" |
| AUTHOR = "The Chromium OS Authors,chromeos-kernel-test@google.com" |
| TIME = "MEDIUM" |
| TEST_CATEGORY = "FUNCTIONAL" |
| TEST_CLASS = "KERNEL" |
| TEST_TYPE = "CLIENT" |
| DOC = """ |
| Convenience control file for running one kernel test. |
| Pass the -a arg to run_remote_tests as follows: |
| |
| ./run_remote_tests.sh --remote=w.x.y.z --use_emerged \ |
| -a "test_names=cros_unittest_sample,cros_sample_getcwd02" \ |
| client/site_tests/kernel_LTP/control.select_tests |
| """ |
| |
| kwargs = utils.args_to_dict(args) |
| test_names = kwargs.get('test_names', None) |
| if not test_names: |
| raise error.TestFail('You are required to supply ' |
| '-a "test_names=xxxx" when calling ' |
| 'run_remote_tests.sh with control.select_tests') |
| |
| job.run_test('kernel_LTP', select_tests=test_names) |