Received: from eggs.gnu.org ([2001:4830:134:3::10]:53914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VzrQx-0000kE-Cf for qemu-devel@nongnu.org; Sun, 05 Jan 2014 12:24:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VzrQr-0002sK-OQ for qemu-devel@nongnu.org; Sun, 05 Jan 2014 12:24:19 -0500 Received: from mx.ipv6.kamp.de ([2a02:248:0:51::16]:59965 helo=mx01.kamp.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VzrQr-0002rz-4u for qemu-devel@nongnu.org; Sun, 05 Jan 2014 12:24:13 -0500 From: Peter Lieven Date: Sun, 5 Jan 2014 18:22:00 +0100 Message-Id: <1388942528-10453-11-git-send-email-pl@kamp.de> In-Reply-To: <1388942528-10453-1-git-send-email-pl@kamp.de> References: <1388942528-10453-1-git-send-email-pl@kamp.de> Subject: [Qemu-devel] [PATCHv2 10/18] qemu-iotests: fix test 028 to work with any protocol List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Fam Zheng , ronniesahlberg@gmail.com, Jeff Cody , Peter Lieven , Max Reitz , owasserm@redhat.com, Federico Simoncelli , Stefan Hajnoczi , Wenchao Xia Signed-off-by: Peter Lieven --- tests/qemu-iotests/028 | 9 ++++----- tests/qemu-iotests/028.out | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/qemu-iotests/028 b/tests/qemu-iotests/028 index a99e4fa..4c7644d 100755 --- a/tests/qemu-iotests/028 +++ b/tests/qemu-iotests/028 @@ -45,7 +45,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # Any format supporting backing files except vmdk and qcow which do not support # smaller backing files. _supported_fmt qcow2 qed -_supported_proto file +_supported_proto generic _supported_os Linux # Choose a size that is not necessarily a cluster size multiple for image @@ -58,20 +58,19 @@ base_size=$(( image_size - 1024 * 1024 * 1024 )) offset=$(( base_size - 32 * 1024 )) -_make_test_img $base_size +TEST_IMG=$TEST_IMG.base _make_test_img $base_size echo "Filling base image" echo # Fill end of base image with a pattern, skipping every other sector -io writev $offset 512 1024 32 +TEST_IMG=$TEST_IMG.base io writev $offset 512 1024 32 -_check_test_img +TEST_IMG=$TEST_IMG.base _check_test_img echo "Creating test image with backing file" echo -mv "$TEST_IMG" "$TEST_IMG.base" _make_test_img -b "$TEST_IMG.base" $image_size echo "Filling test image" diff --git a/tests/qemu-iotests/028.out b/tests/qemu-iotests/028.out index 8affb7f..444e89a 100644 --- a/tests/qemu-iotests/028.out +++ b/tests/qemu-iotests/028.out @@ -1,5 +1,5 @@ QA output created by 028 -Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=3221227008 +Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=3221227008 Filling base image === IO: pattern 195 -- 1.7.9.5