diff mbox

[Autotest] KVM test: subtest stress_boot: Fix a bug that cloned VMs are not screendumped

Message ID 1260440492-3793-1-git-send-email-yzhou@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Yolkfull Chow Dec. 10, 2009, 10:21 a.m. UTC
None
diff mbox

Patch

diff --git a/client/tests/kvm/tests/stress_boot.py b/client/tests/kvm/tests/stress_boot.py
index 2a2e933..0b5ec02 100644
--- a/client/tests/kvm/tests/stress_boot.py
+++ b/client/tests/kvm/tests/stress_boot.py
@@ -1,6 +1,6 @@ 
 import logging, time
 from autotest_lib.client.common_lib import error
-import kvm_subprocess, kvm_test_utils, kvm_utils
+import kvm_subprocess, kvm_test_utils, kvm_utils, kvm_preprocessing
 
 
 def run_stress_boot(tests, params, env):
@@ -39,11 +39,9 @@  def run_stress_boot(tests, params, env):
             vm_params["address_index"] = str(address_index)
             curr_vm = vm.clone(vm_name, vm_params)
             kvm_utils.env_register_vm(env, vm_name, curr_vm)
-            params['vms'] += " " + vm_name
-
             logging.info("Booting guest #%d" % num)
-            if not curr_vm.create():
-                raise error.TestFail("Cannot create VM #%d" % num)
+            kvm_preprocessing.preprocess_vm(tests, vm_params, env, vm_name)
+            params['vms'] += " " + vm_name
 
             curr_vm_session = kvm_utils.wait_for(curr_vm.remote_login, 240, 0, 2)
             if not curr_vm_session: