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

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

Issue 6246035: Merge remote branch 'cros/upstream' into master (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: patch Created 9 years, 10 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
OLDNEW
1 AUTHOR = """ 1 AUTHOR = """
2 uril@redhat.com (Uri Lublin) 2 uril@redhat.com (Uri Lublin)
3 drusso@redhat.com (Dror Russo) 3 drusso@redhat.com (Dror Russo)
4 mgoldish@redhat.com (Michael Goldish) 4 mgoldish@redhat.com (Michael Goldish)
5 dhuff@redhat.com (David Huff) 5 dhuff@redhat.com (David Huff)
6 aeromenk@redhat.com (Alexey Eromenko) 6 aeromenk@redhat.com (Alexey Eromenko)
7 mburns@redhat.com (Mike Burns) 7 mburns@redhat.com (Mike Burns)
8 """ 8 """
9 TIME = 'MEDIUM' 9 TIME = 'MEDIUM'
10 NAME = 'KVM test' 10 NAME = 'KVM test'
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 sys.exit(1) 46 sys.exit(1)
47 47
48 str = """ 48 str = """
49 # This string will be parsed after tests.cfg. Make any desired changes to the 49 # This string will be parsed after tests.cfg. Make any desired changes to the
50 # test configuration here. For example: 50 # test configuration here. For example:
51 #display = sdl 51 #display = sdl
52 #install|setup: timeout_multiplier = 3 52 #install|setup: timeout_multiplier = 3
53 """ 53 """
54 tests_cfg = kvm_config.config() 54 tests_cfg = kvm_config.config()
55 tests_cfg_path = os.path.join(kvm_test_dir, "tests.cfg") 55 tests_cfg_path = os.path.join(kvm_test_dir, "tests.cfg")
56
57 if args:
58 # We get test parameters from command line
59 for arg in args:
60 try:
61 (key, value) = re.findall("(.*)=(.*)", arg)[0]
62 if key == "only":
63 str += "only %s\n" % value
64 elif key == "no":
65 str += "no %s\n" % value
66 else:
67 str += "%s = %s\n" % (key, value)
68 except IndexError:
69 pass
56 tests_cfg.fork_and_parse(tests_cfg_path, str) 70 tests_cfg.fork_and_parse(tests_cfg_path, str)
57 71
58 # Run the tests 72 # Run the tests
59 kvm_utils.run_tests(tests_cfg.get_generator(), job) 73 kvm_utils.run_tests(tests_cfg.get_generator(), job)
60 74
61 # Generate a nice HTML report inside the job's results dir 75 # Generate a nice HTML report inside the job's results dir
62 kvm_utils.create_report(kvm_test_dir, job.resultdir) 76 kvm_utils.create_report(kvm_test_dir, job.resultdir)
63 77
OLDNEW
« cli/job.py ('K') | « client/tests/kvm/cd_hash.py ('k') | client/tests/kvm/deps/finish.exe » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698