aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/218
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2022-04-18 17:15:03 -0400
committerHanna Reitz <hreitz@redhat.com>2022-04-25 14:30:34 +0200
commit72cfb937b833ea6f49d022e1c7705eb9017a7c5d (patch)
tree47e2df3c0c7259277afbca64e6855988f2aeadaa /tests/qemu-iotests/218
parent23d44dcb7c247347a0c3e4565c4cd7e4d2a5183a (diff)
downloadqemu-72cfb937b833ea6f49d022e1c7705eb9017a7c5d.zip
qemu-72cfb937b833ea6f49d022e1c7705eb9017a7c5d.tar.gz
qemu-72cfb937b833ea6f49d022e1c7705eb9017a7c5d.tar.bz2
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>
Diffstat (limited to 'tests/qemu-iotests/218')
-rwxr-xr-xtests/qemu-iotests/2185
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/qemu-iotests/218 b/tests/qemu-iotests/218
index 8345793..6320c4c 100755
--- a/tests/qemu-iotests/218
+++ b/tests/qemu-iotests/218
@@ -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()