diff options
author | 2022-02-04 12:10:09 +0100 | |
---|---|---|
committer | 2022-02-11 14:06:05 +0100 | |
commit | 091dc7b2b5553a529bff9a7bf9ad3bc85bc5bdcd (patch) | |
tree | 1d566340044d4b06c8c966c548ad36cf2d4d5abe /scripts/qapi/commands.py | |
parent | block/nbd: Assert there are no timers when closed (diff) | |
download | qemu-091dc7b2b5553a529bff9a7bf9ad3bc85bc5bdcd.tar.xz qemu-091dc7b2b5553a529bff9a7bf9ad3bc85bc5bdcd.zip |
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>
Diffstat (limited to 'scripts/qapi/commands.py')
0 files changed, 0 insertions, 0 deletions