diff mbox

[Autotest] KVM Test: Remove qemu prompt from send_monitor_cmd return data.

Message ID 1275901480-17015-1-git-send-email-fyang@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Feng Yang June 7, 2010, 9:04 a.m. UTC
None
diff mbox

Patch

diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py
index 3943207..9f9f697 100755
--- a/client/tests/kvm/kvm_vm.py
+++ b/client/tests/kvm/kvm_vm.py
@@ -645,6 +645,7 @@  class VM:
                                   "output so far:" +
                                   kvm_utils.format_str_for_message(data))
                     return (1, data)
+            data = "".join(data.rstrip().splitlines(True)[:-1])
             return (0, data)
 
         # Clean up before exiting