summaryrefslogtreecommitdiffstats
path: root/tests/qemu-iotests/255
diff options
context:
space:
mode:
authorJohn Snow2021-10-26 19:56:05 +0200
committerJohn Snow2021-11-01 16:54:59 +0100
commitb9420e4f4b899c96221fa5a1f7f025214e756c50 (patch)
treebf744d81f87511a55c776f29e94ac89e4525a28b /tests/qemu-iotests/255
parentpython: Add iotest linters to test suite (diff)
downloadqemu-b9420e4f4b899c96221fa5a1f7f025214e756c50.tar.gz
qemu-b9420e4f4b899c96221fa5a1f7f025214e756c50.tar.xz
qemu-b9420e4f4b899c96221fa5a1f7f025214e756c50.zip
python/machine: remove has_quit argument
If we spy on the QMP commands instead, we don't need callers to remember to pass it. Seems like a fair trade-off. The one slightly weird bit is overloading this instance variable for wait(), where we use it to mean "don't issue the qmp 'quit' command". This means that wait() will "fail" if the QEMU process does not terminate of its own accord. In most cases, we probably did already actually issue quit -- some iotests do this -- but in some others, we may be waiting for QEMU to terminate for some other reason, such as a test wherein we tell the guest (directly) to shut down. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Hanna Reitz <hreitz@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Message-id: 20211026175612.4127598-2-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/255')
-rwxr-xr-xtests/qemu-iotests/2552
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/255 b/tests/qemu-iotests/255
index c43aa9c67a..3d6d0e80cb 100755
--- a/tests/qemu-iotests/255
+++ b/tests/qemu-iotests/255
@@ -123,4 +123,4 @@ with iotests.FilePath('src.qcow2') as src_path, \
vm.qmp_log('block-job-cancel', device='job0')
vm.qmp_log('quit')
- vm.shutdown(has_quit=True)
+ vm.shutdown()