Skip to contentSkip to conversation

KVM test: iofuzz: Fix exception formatting bug

PATCH New Lucas Meneghel Rodrigues 1 participant 1 message Apr 10, 2011 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM test: iofuzz: Fix exception formatting bug

Show both operation and operand when VM quits abnormally.

---
 client/tests/kvm/tests/iofuzz.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
client/tests/kvm/tests/iofuzz.py +2 -2
index 7189f91..ea25ba2 100644
@@ -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))
Signature · 1 line
1.7.4.2