]> git.proxmox.com Git - mirror_qemu.git/commit
iotests.py: Add QemuStorageDaemon class
authorHanna Reitz <hreitz@redhat.com>
Fri, 4 Feb 2022 11:10:09 +0000 (12:10 +0100)
committerVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Fri, 11 Feb 2022 13:06:05 +0000 (14:06 +0100)
commit091dc7b2b5553a529bff9a7bf9ad3bc85bc5bdcd
tree1d566340044d4b06c8c966c548ad36cf2d4d5abe
parent8a39c381e5e407d2fe5500324323f90a8540fa90
iotests.py: Add QemuStorageDaemon class

This is a rather simple class that allows creating a QSD instance
running in the background and stopping it when no longer needed.

The __del__ handler is a safety net for when something goes so wrong in
a test that e.g. the tearDown() method is not called (e.g. setUp()
launches the QSD, but then launching a VM fails).  We do not want the
QSD to continue running after the test has failed, so __del__() will
take care to kill it.

Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
tests/qemu-iotests/iotests.py