aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/056
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2022-04-18 17:14:55 -0400
committerHanna Reitz <hreitz@redhat.com>2022-04-25 14:30:04 +0200
commite9039c045180c5929c1f440e8b0cb7c7ebfc3576 (patch)
tree158bb4a3678e911af67f440692581608443740e7 /tests/qemu-iotests/056
parenta19052496709d0999d777f0cb1fbd532958196c6 (diff)
downloadqemu-e9039c045180c5929c1f440e8b0cb7c7ebfc3576.zip
qemu-e9039c045180c5929c1f440e8b0cb7c7ebfc3576.tar.gz
qemu-e9039c045180c5929c1f440e8b0cb7c7ebfc3576.tar.bz2
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>
Diffstat (limited to 'tests/qemu-iotests/056')
-rwxr-xr-xtests/qemu-iotests/0562
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/056 b/tests/qemu-iotests/056
index b459a3f..bef865e 100755
--- a/tests/qemu-iotests/056
+++ b/tests/qemu-iotests/056
@@ -102,7 +102,7 @@ class TestSyncModesNoneAndTop(iotests.QMPTestCase):
self.vm.shutdown()
time.sleep(1)
- self.assertEqual(-1, qemu_io('-c', 'read -P0x41 0 512', target_img).find("verification failed"))
+ qemu_io('-c', 'read -P0x41 0 512', target_img)
class TestBeforeWriteNotifier(iotests.QMPTestCase):
def setUp(self):