aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/155
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2020-02-18 11:34:48 +0100
committerKevin Wolf <kwolf@redhat.com>2020-02-18 11:55:40 +0100
commit6644d0e6192b36cdf2902c9774e1afb8ab2e7223 (patch)
treedc1d48b6cae37e9a26f58636be16b3e03c9adf05 /tests/qemu-iotests/155
parent3c7f75b3219e6bd59cd4c6867e695449048ac152 (diff)
downloadqemu-6644d0e6192b36cdf2902c9774e1afb8ab2e7223.zip
qemu-6644d0e6192b36cdf2902c9774e1afb8ab2e7223.tar.gz
qemu-6644d0e6192b36cdf2902c9774e1afb8ab2e7223.tar.bz2
iotests: Use complete_and_wait() in 155
This way, we get to see errors during the completion phase. Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-Id: <20200218103454.296704-14-mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/155')
-rwxr-xr-xtests/qemu-iotests/1557
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/qemu-iotests/155 b/tests/qemu-iotests/155
index e35b1d5..f237868 100755
--- a/tests/qemu-iotests/155
+++ b/tests/qemu-iotests/155
@@ -163,12 +163,7 @@ class MirrorBaseClass(BaseClass):
self.assert_qmp(result, 'return', {})
- self.vm.event_wait('BLOCK_JOB_READY')
-
- result = self.vm.qmp('block-job-complete', device='mirror-job')
- self.assert_qmp(result, 'return', {})
-
- self.vm.event_wait('BLOCK_JOB_COMPLETED')
+ self.complete_and_wait('mirror-job')
def testFull(self):
self.runMirror('full')