thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone
902636
From 872fbd32d06bda4aba3a7e67a95f76f62e475dbe Mon Sep 17 00:00:00 2001
902636
From: Kevin Wolf <kwolf@redhat.com>
902636
Date: Fri, 13 Mar 2020 12:34:27 +0000
902636
Subject: [PATCH 07/20] iotests: Use complete_and_wait() in 155
902636
902636
RH-Author: Kevin Wolf <kwolf@redhat.com>
902636
Message-id: <20200313123439.10548-2-kwolf@redhat.com>
902636
Patchwork-id: 94279
902636
O-Subject: [RHEL-AV-8.2.0 qemu-kvm PATCH v2 01/13] iotests: Use complete_and_wait() in 155
902636
Bugzilla: 1790482 1805143
902636
RH-Acked-by: John Snow <jsnow@redhat.com>
902636
RH-Acked-by: Daniel P. Berrange <berrange@redhat.com>
902636
RH-Acked-by: Peter Krempa <pkrempa@redhat.com>
902636
902636
From: Max Reitz <mreitz@redhat.com>
902636
902636
This way, we get to see errors during the completion phase.
902636
902636
Signed-off-by: Max Reitz <mreitz@redhat.com>
902636
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
902636
Message-Id: <20200218103454.296704-14-mreitz@redhat.com>
902636
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
902636
(cherry picked from commit 6644d0e6192b36cdf2902c9774e1afb8ab2e7223)
902636
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
902636
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
902636
---
902636
 tests/qemu-iotests/155 | 7 +------
902636
 1 file changed, 1 insertion(+), 6 deletions(-)
902636
902636
diff --git a/tests/qemu-iotests/155 b/tests/qemu-iotests/155
902636
index e194859..d7ef257 100755
902636
--- a/tests/qemu-iotests/155
902636
+++ b/tests/qemu-iotests/155
902636
@@ -163,12 +163,7 @@ class MirrorBaseClass(BaseClass):
902636
 
902636
         self.assert_qmp(result, 'return', {})
902636
 
902636
-        self.vm.event_wait('BLOCK_JOB_READY')
902636
-
902636
-        result = self.vm.qmp('block-job-complete', device='mirror-job')
902636
-        self.assert_qmp(result, 'return', {})
902636
-
902636
-        self.vm.event_wait('BLOCK_JOB_COMPLETED')
902636
+        self.complete_and_wait('mirror-job')
902636
 
902636
     def testFull(self):
902636
         self.runMirror('full')
902636
-- 
902636
1.8.3.1
902636