diff mbox

[KVM-AUTOTEST,v3,09/11] KVM test: use error.context() in VM.create()

Message ID 1294426091-16704-9-git-send-email-mgoldish@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Michael Goldish Jan. 7, 2011, 6:48 p.m. UTC
None
diff mbox

Patch

diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py
index 997a44f..6f494eb 100755
--- a/client/tests/kvm/kvm_vm.py
+++ b/client/tests/kvm/kvm_vm.py
@@ -656,6 +656,7 @@  class VM:
         return qemu_cmd
 
 
+    @error.context_aware
     def create(self, name=None, params=None, root_dir=None, timeout=5.0,
                migration_mode=None, mac_source=None):
         """
@@ -683,6 +684,7 @@  class VM:
                 requested
         @raise VMPAError: If no PCI assignable devices could be assigned
         """
+        error.context("creating '%s'" % self.name)
         self.destroy()
 
         if name is not None: