From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtLio-00059n-Ix for qemu-devel@nongnu.org; Sat, 07 Jun 2014 14:52:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WtLii-0008GU-AL for qemu-devel@nongnu.org; Sat, 07 Jun 2014 14:52:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtLii-0008GJ-2Y for qemu-devel@nongnu.org; Sat, 07 Jun 2014 14:52:00 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s57IpxOP020099 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sat, 7 Jun 2014 14:51:59 -0400 From: Max Reitz Date: Sat, 7 Jun 2014 20:51:17 +0200 Message-Id: <1402167080-20316-12-git-send-email-mreitz@redhat.com> In-Reply-To: <1402167080-20316-1-git-send-email-mreitz@redhat.com> References: <1402167080-20316-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH v8 11/14] iotests: Add _filter_qemu_img_map List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Stefan Hajnoczi , Max Reitz 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 --- 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 a04df7f..8b14edb 100644 --- a/tests/qemu-iotests/common.filter +++ b/tests/qemu-iotests/common.filter @@ -170,5 +170,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 -- 2.0.0