diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2014-07-17 19:09:39 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-07-18 13:27:11 +0100 |
commit | 8283c5c316333fb9d2540167f3e22bd91404ecee (patch) | |
tree | 8866d198852d5887669bd032b978d445d1f89a09 /tests/qemu-iotests/028 | |
parent | df26a35025427f34c1d4e5a8e51152371a5e231e (diff) | |
download | qemu-8283c5c316333fb9d2540167f3e22bd91404ecee.zip qemu-8283c5c316333fb9d2540167f3e22bd91404ecee.tar.gz qemu-8283c5c316333fb9d2540167f3e22bd91404ecee.tar.bz2 |
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 <stefanha@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/028')
-rwxr-xr-x | tests/qemu-iotests/028 | 4 |
1 files changed, 3 insertions, 1 deletions
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' "" |