OLD | NEW |
1 AUTHOR = """ | 1 AUTHOR = """ |
2 mgoldish@redhat.com (Michael Goldish) | 2 mgoldish@redhat.com (Michael Goldish) |
3 nsprei@redhat.com (Naphtali Sprei) | 3 nsprei@redhat.com (Naphtali Sprei) |
4 lmr@redhat.com (Lucas Meneghel Rodrigues) | 4 lmr@redhat.com (Lucas Meneghel Rodrigues) |
5 """ | 5 """ |
6 TIME = 'MEDIUM' | 6 TIME = 'MEDIUM' |
7 NAME = 'KVM test' | 7 NAME = 'KVM test' |
8 TEST_TYPE = 'client' | 8 TEST_TYPE = 'client' |
9 TEST_CLASS = 'Virtualization' | 9 TEST_CLASS = 'Virtualization' |
10 TEST_CATEGORY = 'Unittest' | 10 TEST_CATEGORY = 'Unittest' |
11 | 11 |
12 DOC = """ | 12 DOC = """ |
13 Runs the unittests available for a given KVM build. | 13 Runs the unittests available for a given KVM build. |
14 """ | 14 """ |
15 | 15 |
16 import sys, os, logging | 16 import sys, os, logging |
17 # Add the KVM tests dir to the python path | 17 from autotest_lib.client.common_lib import cartesian_config |
| 18 from autotest_lib.client.virt import virt_utils |
| 19 |
| 20 parser = cartesian_config.Parser() |
18 kvm_test_dir = os.path.join(os.environ['AUTODIR'],'tests/kvm') | 21 kvm_test_dir = os.path.join(os.environ['AUTODIR'],'tests/kvm') |
19 sys.path.append(kvm_test_dir) | |
20 # Now we can import modules inside the KVM tests dir | |
21 import kvm_utils, kvm_config | |
22 | |
23 tests_cfg = kvm_config.config() | |
24 tests_cfg_path = os.path.join(kvm_test_dir, "unittests.cfg") | 22 tests_cfg_path = os.path.join(kvm_test_dir, "unittests.cfg") |
25 tests_cfg.fork_and_parse(tests_cfg_path) | 23 parser.parse_file(tests_cfg_path) |
26 | 24 |
27 # Run the tests | 25 # Run the tests |
28 kvm_utils.run_tests(tests_cfg.get_generator(), job) | 26 virt_utils.run_tests(parser, job) |
OLD | NEW |