diff mbox

[KVM-AUTOTEST] KVM test: kvm.py: add exception class name to failure message

Message ID 1277814104-13599-3-git-send-email-mgoldish@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Michael Goldish June 29, 2010, 12:21 p.m. UTC
None
diff mbox

Patch

diff --git a/client/tests/kvm/kvm.py b/client/tests/kvm/kvm.py
index 0799cff..9da4c33 100644
--- a/client/tests/kvm/kvm.py
+++ b/client/tests/kvm/kvm.py
@@ -75,7 +75,8 @@  class kvm(test.test):
                     test_passed = True
 
                 except Exception, e:
-                    logging.error("Test failed: %s", e)
+                    logging.error("Test failed: %s: %s",
+                                  e.__class__.__name__, e)
                     try:
                         kvm_preprocessing.postprocess_on_error(
                             self, params, env)