Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(878)

Side by Side Diff: client/tests/kvm/control.unittests

Issue 6883246: Merge autotest upstream from @5318 ~ @5336 (Closed) Base URL: ssh://gitrw.chromium.org:9222/autotest.git@master
Patch Set: patch Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « client/tests/kvm/control.parallel ('k') | client/tests/kvm/get_started.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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)
OLDNEW
« no previous file with comments | « client/tests/kvm/control.parallel ('k') | client/tests/kvm/get_started.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698