mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
iotests: remove qemu_io_silent() and qemu_io_silent_check().
Like qemu-img, qemu-io returning 0 should be the norm and not the exception. Remove all calls to qemu_io_silent that just assert the return code is zero (That's every last call, as it turns out), and replace them with a normal qemu_io() call. qemu_io_silent_check() appeared to have been unused already. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Hanna Reitz <hreitz@redhat.com> Message-Id: <20220418211504.943969-12-jsnow@redhat.com> Signed-off-by: Hanna Reitz <hreitz@redhat.com>
This commit is contained in:
parent
23d44dcb7c
commit
72cfb937b8
10 changed files with 37 additions and 58 deletions
|
@ -28,7 +28,7 @@
|
|||
# Creator/Owner: Hanna Reitz <hreitz@redhat.com>
|
||||
|
||||
import iotests
|
||||
from iotests import log, qemu_img, qemu_io_silent
|
||||
from iotests import log, qemu_img, qemu_io
|
||||
|
||||
iotests.script_initialize(supported_fmts=['qcow2', 'raw'])
|
||||
|
||||
|
@ -146,8 +146,7 @@ with iotests.VM() as vm, \
|
|||
iotests.FilePath('src.img') as src_img_path:
|
||||
|
||||
qemu_img('create', '-f', iotests.imgfmt, src_img_path, '64M')
|
||||
assert qemu_io_silent('-f', iotests.imgfmt, src_img_path,
|
||||
'-c', 'write -P 42 0M 64M') == 0
|
||||
qemu_io('-f', iotests.imgfmt, src_img_path, '-c', 'write -P 42 0M 64M')
|
||||
|
||||
vm.launch()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue