diff mbox

[KVM-AUTOTEST] KVM test: kvm_vm: destroy VM if hugepage setup fails

Message ID 1270012598-17591-1-git-send-email-mgoldish@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Michael Goldish March 31, 2010, 5:16 a.m. UTC
None
diff mbox

Patch

diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py
index 921414d..047505a 100755
--- a/client/tests/kvm/kvm_vm.py
+++ b/client/tests/kvm/kvm_vm.py
@@ -486,6 +486,7 @@  class VM:
                               "qemu command:\n%s" % qemu_command)
                 logging.error("Output:" + kvm_utils.format_str_for_message(
                               self.process.get_output()))
+                self.destroy()
                 return False
 
             logging.debug("VM appears to be alive with PID %d",