From 8283c5c316333fb9d2540167f3e22bd91404ecee Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Thu, 17 Jul 2014 19:09:39 +0100 Subject: qemu-iotests: fix 028 failure due to disk image path The disk image path is echoed by QEMU's readline when the "drive_backup disk ${TEST_IMG}.copy" HMP command is issued. Unfortunately it is very hard to filter out the path due to readline's character-by-character output (with terminal escape sequences). Just redirect this command to /dev/null for now. Signed-off-by: Stefan Hajnoczi Reviewed-by: Kevin Wolf --- tests/qemu-iotests/028 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/qemu-iotests/028') diff --git a/tests/qemu-iotests/028 b/tests/qemu-iotests/028 index d5718c5..9e701e1 100755 --- a/tests/qemu-iotests/028 +++ b/tests/qemu-iotests/028 @@ -110,7 +110,9 @@ _launch_qemu -drive file="${TEST_IMG}",cache=${CACHEMODE},id=disk h=$QEMU_HANDLE QEMU_COMM_TIMEOUT=1 -_send_qemu_cmd $h "drive_backup disk ${TEST_IMG}.copy" "(qemu)" +# Silence output since it contains the disk image path and QEMU's readline +# character echoing makes it very hard to filter the output +_send_qemu_cmd $h "drive_backup disk ${TEST_IMG}.copy" "(qemu)" >/dev/null qemu_cmd_repeat=20 _send_qemu_cmd $h "info block-jobs" "No active jobs" _send_qemu_cmd $h 'quit' "" -- cgit v1.1