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

Unified Diff: client/tests/kvm/tests/unittest.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, 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/tests/kvm/tests/unattended_install.py ('k') | client/tests/kvm/tests/virtio_console.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tests/kvm/tests/unittest.py
diff --git a/client/tests/kvm/tests/unittest.py b/client/tests/kvm/tests/unittest.py
index 9a126a54447b58a01c44a3513e80341d98b8e462..16168fe729a330b8013f2167c7832fe4ec192ae0 100644
--- a/client/tests/kvm/tests/unittest.py
+++ b/client/tests/kvm/tests/unittest.py
@@ -1,6 +1,6 @@
import logging, os, shutil, glob, ConfigParser
from autotest_lib.client.common_lib import error
-import kvm_utils, kvm_preprocessing
+from autotest_lib.client.virt import virt_utils, virt_env_process
def run_unittest(test, params, env):
@@ -87,14 +87,14 @@ def run_unittest(test, params, env):
try:
try:
vm_name = params.get('main_vm')
- kvm_preprocessing.preprocess_vm(test, params, env, vm_name)
+ virt_env_process.preprocess_vm(test, params, env, vm_name)
vm = env.get_vm(vm_name)
vm.create()
vm.monitor.cmd("cont")
logging.info("Waiting for unittest %s to complete, timeout %s, "
"output in %s", t, timeout,
vm.get_testlog_filename())
- if not kvm_utils.wait_for(vm.is_dead, timeout):
+ if not virt_utils.wait_for(vm.is_dead, timeout):
raise error.TestFail("Timeout elapsed (%ss)" % timeout)
# Check qemu's exit status
status = vm.process.get_status()
« no previous file with comments | « client/tests/kvm/tests/unattended_install.py ('k') | client/tests/kvm/tests/virtio_console.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698