Re: [Qemu-devel] [PATCH 2/3] qemu-iotests: Test BLOCK_JOB_READY event for 0Kb image active commit

2014-06-05 Thread Stefan Hajnoczi
On Thu, Jun 05, 2014 at 11:42:35AM +0800, Fam Zheng wrote: > @@ -48,8 +49,11 @@ class ImageCommitTestCase(iotests.QMPTestCase): > self.assert_qmp(event, 'data/device', 'drive0') > self.assert_qmp(event, 'data/offset', self.image_len) >

[Qemu-devel] [PATCH 2/3] qemu-iotests: Test BLOCK_JOB_READY event for 0Kb image active commit

2014-06-04 Thread Fam Zheng
There should be a BLOCK_JOB_READY event with active commit, regardless of image length. Let's test the 0 length image case, and make sure it goes through the ready->complete process. Signed-off-by: Fam Zheng --- tests/qemu-iotests/040 | 11 ++- tests/qemu-iotests/040.out | 4 ++-- 2