]> Git Repo - qemu.git/blobdiff - tests/qemu-iotests/common.rc
qemu-iotests: add tests for rebasing zero clusters
[qemu.git] / tests / qemu-iotests / common.rc
index aef5f52b4f4ec3b87d5c210ac68b25ae952f71ba..e522d617aa20782a35f1616756c6a4997be3a4a2 100644 (file)
@@ -161,9 +161,10 @@ _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./'
+    $QEMU_IMG check "$@" -f $IMGFMT $TEST_IMG 2>&1 | \
+        sed -e '/allocated.*fragmented.*compressed clusters/d' \
+            -e 's/qemu-img: This image format does not support checks/No errors were found on the image./' \
+            -e '/Image end offset: [0-9]\+/d'
 }
 
 _img_info()
This page took 0.024388 seconds and 4 git commands to generate.