This will result in more informative messages, e.g.:

Test failed: FileTransferConnectError: Could not connect to server

instead of

Test failed: Could not connect to server

Signed-off-by: Michael Goldish <[email protected]>
---
 client/tests/kvm/kvm.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

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)
-- 
1.5.4.1

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to