diff mbox

[KVM-AUTOTEST,17/26] KVM test: kill_unresponsive_vms: log exception message

Message ID 1294751618-21631-17-git-send-email-mgoldish@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Michael Goldish Jan. 11, 2011, 1:13 p.m. UTC
None
diff mbox

Patch

diff --git a/client/tests/kvm/kvm_preprocessing.py b/client/tests/kvm/kvm_preprocessing.py
index 7b3b75b..f7d948c 100644
--- a/client/tests/kvm/kvm_preprocessing.py
+++ b/client/tests/kvm/kvm_preprocessing.py
@@ -337,7 +337,8 @@  def postprocess(test, params, env):
                 try:
                     session = vm.login()
                     session.close()
-                except (kvm_utils.LoginError, kvm_vm.VMError):
+                except (kvm_utils.LoginError, kvm_vm.VMError), e:
+                    logging.warn(e)
                     vm.destroy(gracefully=False)
 
     # Kill all kvm_subprocess tail threads