[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v5 10/12] iotests: Add _filter_qemu_img_map
From: |
Max Reitz |
Subject: |
[Qemu-devel] [PATCH v5 10/12] iotests: Add _filter_qemu_img_map |
Date: |
Thu, 17 Apr 2014 23:59:50 +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>
---
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 776985d..78ea9e5 100644
--- a/tests/qemu-iotests/common.filter
+++ b/tests/qemu-iotests/common.filter
@@ -169,5 +169,12 @@ _filter_qmp()
-e 's#^{"QMP":.*}$#QMP_VERSION#'
}
+# 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.2
[Qemu-devel] [PATCH v5 08/12] qemu-img: Enable progress output for commit, Max Reitz, 2014/04/17
[Qemu-devel] [PATCH v5 09/12] qemu-img: Specify backing file for commit, Max Reitz, 2014/04/17
[Qemu-devel] [PATCH v5 10/12] iotests: Add _filter_qemu_img_map,
Max Reitz <=
[Qemu-devel] [PATCH v5 11/12] iotests: Add test for backing-chain commits, Max Reitz, 2014/04/17
[Qemu-devel] [PATCH v5 12/12] iotests: Omit length/offset test in 040 and 041, Max Reitz, 2014/04/17
[Qemu-devel] [PATCH v5 02/12] qcow2: Implement bdrv_make_empty(), Max Reitz, 2014/04/17