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

Side by Side Diff: client/virt/tests/autotest.py

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, 7 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/virt/rss_client.py ('k') | client/virt/tests/boot.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 import os 1 import os
2 import kvm_test_utils 2 from autotest_lib.client.virt import virt_test_utils
3 3
4 4
5 def run_autotest(test, params, env): 5 def run_autotest(test, params, env):
6 """ 6 """
7 Run an autotest test inside a guest. 7 Run an autotest test inside a guest.
8 8
9 @param test: kvm test object. 9 @param test: kvm test object.
10 @param params: Dictionary with test parameters. 10 @param params: Dictionary with test parameters.
11 @param env: Dictionary with the test environment. 11 @param env: Dictionary with the test environment.
12 """ 12 """
13 vm = env.get_vm(params["main_vm"]) 13 vm = env.get_vm(params["main_vm"])
14 vm.verify_alive() 14 vm.verify_alive()
15 timeout = int(params.get("login_timeout", 360)) 15 timeout = int(params.get("login_timeout", 360))
16 session = vm.wait_for_login(timeout=timeout) 16 session = vm.wait_for_login(timeout=timeout)
17 17
18 # Collect test parameters 18 # Collect test parameters
19 timeout = int(params.get("test_timeout", 300)) 19 timeout = int(params.get("test_timeout", 300))
20 control_path = os.path.join(test.bindir, "autotest_control", 20 control_path = os.path.join(test.bindir, "autotest_control",
21 params.get("test_control_file")) 21 params.get("test_control_file"))
22 outputdir = test.outputdir 22 outputdir = test.outputdir
23 23
24 kvm_test_utils.run_autotest(vm, session, control_path, timeout, outputdir, 24 virt_test_utils.run_autotest(vm, session, control_path, timeout, outputdir,
25 params) 25 params)
OLDNEW
« no previous file with comments | « client/virt/rss_client.py ('k') | client/virt/tests/boot.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698