aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/224
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/224
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/224')
-rwxr-xr-xtests/qemu-iotests/2244
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qemu-iotests/224 b/tests/qemu-iotests/224
index 4df5157..542d0ee 100755
--- a/tests/qemu-iotests/224
+++ b/tests/qemu-iotests/224
@@ -22,7 +22,7 @@
# Creator/Owner: Hanna Reitz <hreitz@redhat.com>
import iotests
-from iotests import log, qemu_img, qemu_io_silent, filter_qmp_testfiles, \
+from iotests import log, qemu_img, qemu_io, filter_qmp_testfiles, \
filter_qmp_imgfmt
import json
@@ -54,7 +54,7 @@ for filter_node_name in False, True:
'-F', iotests.imgfmt, top_img_path)
# Something to commit
- assert qemu_io_silent(mid_img_path, '-c', 'write -P 1 0 1M') == 0
+ qemu_io(mid_img_path, '-c', 'write -P 1 0 1M')
vm.launch()