mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
iotests: Remove explicit checks for qemu_img() == 0
qemu_img() returning zero ought to be the rule, not the exception. Remove all explicit checks against the condition in preparation for making non-zero returns an Exception. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Hanna Reitz <hreitz@redhat.com> Message-Id: <20220321201618.903471-4-jsnow@redhat.com> Signed-off-by: Hanna Reitz <hreitz@redhat.com>
This commit is contained in:
parent
062fd1dad2
commit
fc272d3ce0
15 changed files with 45 additions and 56 deletions
|
@ -145,7 +145,7 @@ log('')
|
|||
with iotests.VM() as vm, \
|
||||
iotests.FilePath('src.img') as src_img_path:
|
||||
|
||||
assert qemu_img('create', '-f', iotests.imgfmt, src_img_path, '64M') == 0
|
||||
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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue