iotests: rewrite iotest 240 in python
commitc6ac463631a124eaa47cae8a9a4aaac4d0761d28
authorMaxim Levitsky <mlevitsk@redhat.com>
Wed, 4 Nov 2020 18:50:25 +0000 (4 20:50 +0200)
committerMax Reitz <mreitz@redhat.com>
Mon, 9 Nov 2020 14:44:21 +0000 (9 15:44 +0100)
treea7b8937e875dd966a17c01a352c02173e6377d29
parent2daba442059a838f8f3c80d8fa52a85768ba7c4c
iotests: rewrite iotest 240 in python

The recent changes that brought RCU delayed device deletion,
broke few tests and this test breakage went unnoticed.

Fix this test by rewriting it in python
(which allows to wait for DEVICE_DELETED events before continuing).

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20201104185025.434703-3-mlevitsk@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
tests/qemu-iotests/240
tests/qemu-iotests/240.out