iotests: Don't check qemu_io() output for specific error strings
authorJohn Snow <jsnow@redhat.com>
Mon, 18 Apr 2022 21:14:55 +0000 (17:14 -0400)
committerHanna Reitz <hreitz@redhat.com>
Mon, 25 Apr 2022 12:30:04 +0000 (14:30 +0200)
commite9039c045180c5929c1f440e8b0cb7c7ebfc3576
tree158bb4a3678e911af67f440692581608443740e7
parenta19052496709d0999d777f0cb1fbd532958196c6
iotests: Don't check qemu_io() output for specific error strings

A forthcoming commit updates qemu_io() to raise an exception on non-zero
return by default, and changes its return type.

In preparation, simplify some calls to qemu_io() that assert that
specific error message strings do not appear in qemu-io's
output. Asserting that all of these calls return a status code of zero
will be a more robust way to guard against failure.

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-4-jsnow@redhat.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
tests/qemu-iotests/040
tests/qemu-iotests/056