Am 08.05.2012 16:51, schrieb Paolo Bonzini:
> Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
> ---
>  tests/qemu-iotests/030     |   27 ++++++++++++++++++++++++++-
>  tests/qemu-iotests/030.out |    4 ++--
>  2 file changed, 28 insertions(+), 3 deletion(-)
> 
> diff --git a/tests/qemu-iotests/030.out b/tests/qemu-iotests/030.out
> index 0d2f87b..0aa7a0a 100644
> --- a/tests/qemu-iotests/030.out
> +++ b/tests/qemu-iotests/030.out
> @@ -1,5 +1,5 @@
> -.....
> +......
>  ----------------------------------------------------------------------
> -Ran 5 tests
> +Ran 6 tests
>  
>  OK
> diff --git a/tests/qemu-iotests/030 b/tests/qemu-iotests/030
> index 0d2f87b..0aa7a0a 100755
> --- a/tests/qemu-iotests/030
> +++ b/tests/qemu-iotests/030
> @@ -23,6 +23,7 @@ import iotests
>  from iotests import qemu_img, qemu_io
>  
>  backing_img = os.path.join(iotests.test_dir, 'backing.img')
> +mid_img = os.path.join(iotests.test_dir, 'mid.img')
>  test_img = os.path.join(iotests.test_dir, 'test.img')
>  
>  class ImageStreamingTestCase(iotests.QMPTestCase):
> @@ -52,7 +53,8 @@ class TestSingleDrive(ImageStreamingTestCase):
>  
>      def setUp(self):
>          qemu_img('create', backing_img, str(TestSingleDrive.image_len))
> -        qemu_img('create', '-f', iotests.imgfmt, '-o', 'backing_file=%s' % 
> backing_img, test_img)
> +        qemu_img('create', '-f', iotests.imgfmt, '-o', 'backing_file=%s' % 
> backing_img, mid_img)
> +        qemu_img('create', '-f', iotests.imgfmt, '-o', 'backing_file=%s' % 
> mid_img, test_img)
>          self.vm = iotests.VM().add_drive(test_img)
>          self.vm.launch()

mid.img must be deleted again in tearDown().

Kevin

Reply via email to