| AUTHOR = """ |
| mgoldish@redhat.com (Michael Goldish) |
| nsprei@redhat.com (Naphtali Sprei) |
| lmr@redhat.com (Lucas Meneghel Rodrigues) |
| """ |
| TIME = 'MEDIUM' |
| NAME = 'KVM test' |
| TEST_TYPE = 'client' |
| TEST_CLASS = 'Virtualization' |
| TEST_CATEGORY = 'Unittest' |
| |
| DOC = """ |
| Runs the unittests available for a given KVM build. |
| """ |
| |
| import sys, os, logging |
| from autotest_lib.client.common_lib import cartesian_config |
| from autotest_lib.client.virt import virt_utils |
| |
| parser = cartesian_config.Parser() |
| kvm_test_dir = os.path.join(os.environ['AUTODIR'],'tests/kvm') |
| tests_cfg_path = os.path.join(kvm_test_dir, "unittests.cfg") |
| parser.parse_file(tests_cfg_path) |
| |
| # Run the tests |
| virt_utils.run_tests(parser, job) |