[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v14 12/14] iotests: Add _filter_qemu_img_map
From: |
Max Reitz |
Subject: |
[Qemu-devel] [PATCH v14 12/14] iotests: Add _filter_qemu_img_map |
Date: |
Fri, 24 Oct 2014 15:57:41 +0200 |
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 <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Kevin Wolf <address@hidden>
---
tests/qemu-iotests/common.filter | 7 +++++++
1 file changed, 7 insertions(+)
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
--
1.9.3
- [Qemu-devel] [PATCH v14 05/14] blockjob: Add "ready" field, (continued)
- [Qemu-devel] [PATCH v14 05/14] blockjob: Add "ready" field, Max Reitz, 2014/10/24
- [Qemu-devel] [PATCH v14 07/14] block/mirror: Improve progress report, Max Reitz, 2014/10/24
- [Qemu-devel] [PATCH v14 08/14] qemu-img: Implement commit like QMP, Max Reitz, 2014/10/24
- [Qemu-devel] [PATCH v14 09/14] qemu-img: Empty image after commit, Max Reitz, 2014/10/24
- [Qemu-devel] [PATCH v14 10/14] qemu-img: Enable progress output for commit, Max Reitz, 2014/10/24
- [Qemu-devel] [PATCH v14 11/14] qemu-img: Specify backing file for commit, Max Reitz, 2014/10/24
- [Qemu-devel] [PATCH v14 13/14] iotests: Add test for backing-chain commits, Max Reitz, 2014/10/24
- [Qemu-devel] [PATCH v14 12/14] iotests: Add _filter_qemu_img_map,
Max Reitz <=
- [Qemu-devel] [PATCH v14 14/14] iotests: Add test for qcow2's bdrv_make_empty, Max Reitz, 2014/10/24
- Re: [Qemu-devel] [PATCH v14 00/14] qemu-img: Implement commit like QMP, Kevin Wolf, 2014/10/28
- Re: [Qemu-devel] [PATCH v14 00/14] qemu-img: Implement commit like QMP, Stefan Hajnoczi, 2014/10/29