From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54516) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgvOO-0007HB-2T for qemu-devel@nongnu.org; Wed, 22 Oct 2014 08:52:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgvOH-0004TE-UH for qemu-devel@nongnu.org; Wed, 22 Oct 2014 08:51:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:63107) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgvOH-0004T9-N2 for qemu-devel@nongnu.org; Wed, 22 Oct 2014 08:51:49 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s9MCpnCD005719 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 22 Oct 2014 08:51:49 -0400 From: Max Reitz Date: Wed, 22 Oct 2014 14:51:21 +0200 Message-Id: <1413982283-10186-13-git-send-email-mreitz@redhat.com> In-Reply-To: <1413982283-10186-1-git-send-email-mreitz@redhat.com> References: <1413982283-10186-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH v13 12/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 Reviewed-by: Eric Blake --- 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