summaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/common.filter
diff options
context:
space:
mode:
authorReda Sallahi <fullmanet@gmail.com>2016-08-10 04:43:12 +0200
committerMax Reitz <mreitz@redhat.com>2016-09-20 22:10:57 +0200
commit86ce1f6e2b73b33c4a52818e245378bf52d27200 (patch)
tree218a8d843ce6fcb5b9b075e7b81913eac2e95e3e /tests/qemu-iotests/common.filter
parenta008535b9fa396226ff9cf78b8ac5f3584bda58e (diff)
downloadqemu-86ce1f6e2b73b33c4a52818e245378bf52d27200.tar.gz
qemu-img: add the 'dd' subcommand
This patch adds a basic dd subcommand analogous to dd(1) to qemu-img. For the start, this implements the bs, if, of and count options and requires both if and of to be specified (no stdin/stdout if not specified) and doesn't support tty, pipes, etc. The image format must be specified with -O for the output if the raw format is not the intended one. Two tests are added to test qemu-img dd. Signed-off-by: Reda Sallahi <fullmanet@gmail.com> Message-id: 20160810024312.14544-1-fullmanet@gmail.com Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> [mreitz: Moved test 158 to 170] Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/common.filter')
-rw-r--r--tests/qemu-iotests/common.filter9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/qemu-iotests/common.filter b/tests/qemu-iotests/common.filter
index 3ab6e4d764..240ed0697a 100644
--- a/tests/qemu-iotests/common.filter
+++ b/tests/qemu-iotests/common.filter
@@ -44,6 +44,15 @@ _filter_imgfmt()
sed -e "s#$IMGFMT#IMGFMT#g"
}
+# Replace error message when the format is not supported and delete
+# the output lines after the first one
+_filter_qemu_img_check()
+{
+ sed -e '/allocated.*fragmented.*compressed clusters/d' \
+ -e 's/qemu-img: This image format does not support checks/No errors were found on the image./' \
+ -e '/Image end offset: [0-9]\+/d'
+}
+
# Removes \r from messages
_filter_win32()
{