cryptospore / rpms / qemu-kvm

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