diff mbox

KVM test: iofuzz: Fix exception formatting bug

Message ID 1302468251-5914-1-git-send-email-lmr@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Lucas Meneghel Rodrigues April 10, 2011, 8:44 p.m. UTC
Show both operation and operand when VM quits abnormally.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
---
 client/tests/kvm/tests/iofuzz.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/client/tests/kvm/tests/iofuzz.py b/client/tests/kvm/tests/iofuzz.py
index 7189f91..ea25ba2 100644
--- a/client/tests/kvm/tests/iofuzz.py
+++ b/client/tests/kvm/tests/iofuzz.py
@@ -84,8 +84,8 @@  def run_iofuzz(test, params, env):
                         logging.debug("Could not re-login, reboot the guest")
                         session = vm.reboot(method="system_reset")
                 else:
-                    raise error.TestFail("VM has quit abnormally during %s",
-                                         (op, operand))
+                    raise error.TestFail("VM has quit abnormally during "
+                                         "%s: %s" % (op, operand))
 
 
     login_timeout = float(params.get("login_timeout", 240))