qemu-iotests: Test I/O limits with removable media
commit0761562687e0d8135310a94b1d3e08376387c027
authorAlberto Garcia <berto@igalia.com>
Fri, 10 Nov 2017 18:54:48 +0000 (10 20:54 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 13 Nov 2017 15:46:26 +0000 (13 15:46 +0000)
treeb0a3f480ebd7f2889314fe08957a131fb48a1f37
parentc89bcf3af01e7a8834cca5344e098bf879e99999
qemu-iotests: Test I/O limits with removable media

This test hotplugs a CD drive to a VM and checks that I/O limits can
be set only when the drive has media inserted and that they are kept
when the media is replaced.

This also tests the removal of a device with valid I/O limits set but
no media inserted. This involves deleting and disabling the limits
of a BlockBackend without BlockDriverState, a scenario that has been
crashing until the fixes from the last couple of patches.

[Python PEP8 fixup: "Don't use spaces are the = sign when used to
indicate a keyword argument or a default parameter value"
--Stefan]

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 071eb397118ed207c5a7f01d58766e415ee18d6a.1510339534.git.berto@igalia.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/qemu-iotests/093
tests/qemu-iotests/093.out