From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbSIR-0004R2-KQ for qemu-devel@nongnu.org; Wed, 30 Oct 2013 05:42:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbSIK-0000mD-R3 for qemu-devel@nongnu.org; Wed, 30 Oct 2013 05:42:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60742) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbSIK-0000m7-Jv for qemu-devel@nongnu.org; Wed, 30 Oct 2013 05:42:32 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r9U9gVrM006156 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 30 Oct 2013 05:42:32 -0400 From: Fam Zheng Date: Wed, 30 Oct 2013 17:42:28 +0800 Message-Id: <1383126148-1664-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH v2] qemu-iotests: prefill some data to test image List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, stefanha@redhat.com, mreitz@redhat.com Case 030 occasionally fails because of block job compltes too fast to be captured by script, and 'unexpected qmp event' of job completion causes the test failure. Simply fill in some data to the test image to make this false alarm less likely to happen. (For other benefits to prefill data to test image, see also commit ab68cdfaa). Signed-off-by: Fam Zheng --- v2: subsequent to "qemu-iotests: fix 030 for faster machines". Signed-off-by: Fam Zheng --- tests/qemu-iotests/030 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/qemu-iotests/030 b/tests/qemu-iotests/030 index ae56f3b..d0f96ea 100755 --- a/tests/qemu-iotests/030 +++ b/tests/qemu-iotests/030 @@ -388,7 +388,9 @@ class TestStreamStop(iotests.QMPTestCase): def setUp(self): qemu_img('create', backing_img, str(TestStreamStop.image_len)) + qemu_io('-c', 'write -P 0x1 0 32M', backing_img) qemu_img('create', '-f', iotests.imgfmt, '-o', 'backing_file=%s' % backing_img, test_img) + qemu_io('-c', 'write -P 0x1 32M 32M', test_img) self.vm = iotests.VM().add_drive(test_img) self.vm.launch() @@ -414,7 +416,9 @@ class TestSetSpeed(iotests.QMPTestCase): def setUp(self): qemu_img('create', backing_img, str(TestSetSpeed.image_len)) + qemu_io('-c', 'write -P 0x1 0 32M', backing_img) qemu_img('create', '-f', iotests.imgfmt, '-o', 'backing_file=%s' % backing_img, test_img) + qemu_io('-c', 'write -P 0x1 32M 32M', test_img) self.vm = iotests.VM().add_drive(test_img) self.vm.launch() -- 1.8.3.1