diff options
author | Max Reitz <mreitz@redhat.com> | 2014-10-24 15:57:41 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-11-03 11:41:48 +0000 |
commit | f67ac71edb42f764004a3d4564d2a9f3cdfe59bc (patch) | |
tree | 0d899583253cc355ce3c131dca908f01f43d8e76 | |
parent | 1b22bffd829ee3db4ddcfbd7e66c7a7921123f3e (diff) | |
download | qemu-f67ac71edb42f764004a3d4564d2a9f3cdfe59bc.zip qemu-f67ac71edb42f764004a3d4564d2a9f3cdfe59bc.tar.gz qemu-f67ac71edb42f764004a3d4564d2a9f3cdfe59bc.tar.bz2 |
iotests: Add _filter_qemu_img_map
As different image formats most probably map guest addresses to
different host addresses, add a filter to filter the host addresses out;
also, the image filename should be filtered.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-id: 1414159063-25977-13-git-send-email-mreitz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
-rw-r--r-- | tests/qemu-iotests/common.filter | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/qemu-iotests/common.filter b/tests/qemu-iotests/common.filter index f69cb6b..3acdb30 100644 --- a/tests/qemu-iotests/common.filter +++ b/tests/qemu-iotests/common.filter @@ -213,5 +213,12 @@ _filter_img_info() -e "s/archipelago:a/TEST_DIR\//g" } +# filter out offsets and file names from qemu-img map +_filter_qemu_img_map() +{ + sed -e 's/\([0-9a-fx]* *[0-9a-fx]* *\)[0-9a-fx]* */\1/g' \ + -e 's/Mapped to *//' | _filter_testdir | _filter_imgfmt +} + # make sure this script returns success /bin/true |