From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Goldish Subject: [KVM-AUTOTEST PATCH 4/4] KVM test: VM.migrate(): make sure the VM is alive after migration Date: Tue, 11 Jan 2011 20:33:22 +0200 Message-ID: <1294770802-1501-4-git-send-email-mgoldish@redhat.com> References: <1294770802-1501-1-git-send-email-mgoldish@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: autotest@test.kernel.org, kvm@vger.kernel.org Return-path: In-Reply-To: <1294770802-1501-1-git-send-email-mgoldish@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autotest-bounces@test.kernel.org Errors-To: autotest-bounces@test.kernel.org List-Id: kvm.vger.kernel.org Also add a context() call to make the VMDeadError exception more descriptive. Signed-off-by: Michael Goldish --- client/tests/kvm/kvm_vm.py | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py index a69a191..18d10ef 100755 --- a/client/tests/kvm/kvm_vm.py +++ b/client/tests/kvm/kvm_vm.py @@ -1499,6 +1499,11 @@ class VM: # and self is the destination VM that will remain alive. If this # is remote migration, self is a dead VM object. + error.context("after migration") + if local: + time.sleep(1) + self.verify_alive() + if local and stable_check: try: save1 = os.path.join(save_path, "src-" + clone.instance) -- 1.7.3.4