Re: [Qemu-devel] [PATCH 3/3] qemu-iotests: Test 0-length image for mirror

2014-06-05 Thread Stefan Hajnoczi
On Thu, Jun 05, 2014 at 11:42:36AM +0800, Fam Zheng wrote: > +class TestSingleDriveZeroLength(TestSingleDrive): > +def setUp(self): > +TestSingleDrive.image_len = 0 > +return TestSingleDrive.setUp(self) This is buggy since it assigns to TestSingleDrive.image_len. It modifies t

[Qemu-devel] [PATCH 3/3] qemu-iotests: Test 0-length image for mirror

2014-06-04 Thread Fam Zheng
All behavior and invariant should hold for images with 0 length, so add a class to repeat all the tests in TestSingleDrive. Signed-off-by: Fam Zheng --- tests/qemu-iotests/041 | 5 + tests/qemu-iotests/041.out | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/tests