]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commitdiff
qemu-iotests: ignore fragmentation information for qed
authorDong Xu Wang <wdongxu@linux.vnet.ibm.com>
Mon, 23 Apr 2012 09:14:16 +0000 (17:14 +0800)
committerKevin Wolf <kwolf@redhat.com>
Wed, 2 May 2012 16:39:39 +0000 (18:39 +0200)
We added image fragmentation statistics functions to qemu-img several days
ago, those patches will cause "./check -qed" failed. This patch will ignore
fragmentation statistics information of qed format, and then "./check -qed"
will work.

Signed-off-by: Dong Xu Wang <wdongxu@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/common.rc

index 4bc7420ecec6376852620879a11694b92b5bc07f..e535874e4cae1bf467062892fdf37a4891f68958 100644 (file)
@@ -130,6 +130,7 @@ _cleanup_test_img()
 _check_test_img()
 {
     $QEMU_IMG check -f $IMGFMT $TEST_IMG 2>&1 | \
+        grep -v "fragmented$" | \
        sed -e 's/qemu-img\: This image format does not support checks/No errors were found on the image./'
 }