From patchwork Tue Jun 22 01:24:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Goldish X-Patchwork-Id: 107318 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o5M1OQm7003022 for ; Tue, 22 Jun 2010 01:24:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758770Ab0FVBY0 (ORCPT ); Mon, 21 Jun 2010 21:24:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:62647 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752526Ab0FVBYZ (ORCPT ); Mon, 21 Jun 2010 21:24:25 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5M1OO0L027352 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 21 Jun 2010 21:24:24 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o5M1ONfK031424; Mon, 21 Jun 2010 21:24:23 -0400 Received: from localhost.localdomain (dhcp-1-188.tlv.redhat.com [10.35.1.188]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o5M1OKWc030000; Mon, 21 Jun 2010 21:24:22 -0400 From: Michael Goldish To: autotest@test.kernel.org, kvm@vger.kernel.org Cc: Michael Goldish Subject: [KVM-AUTOTEST PATCH] KVM test: kvm_preprocessing.py: test for vm.is_alive() instead of vm.is_dead() Date: Tue, 22 Jun 2010 04:24:14 +0300 Message-Id: <1277169855-14823-2-git-send-email-mgoldish@redhat.com> In-Reply-To: <1277169855-14823-1-git-send-email-mgoldish@redhat.com> References: <1277169855-14823-1-git-send-email-mgoldish@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 22 Jun 2010 01:24:41 +0000 (UTC) diff --git a/client/tests/kvm/kvm_preprocessing.py b/client/tests/kvm/kvm_preprocessing.py index 1ed4ec2..ee279bd 100644 --- a/client/tests/kvm/kvm_preprocessing.py +++ b/client/tests/kvm/kvm_preprocessing.py @@ -406,7 +406,7 @@ def _take_screendumps(test, params, env): while True: for vm in kvm_utils.env_get_all_vms(env): - if vm.is_dead(): + if not vm.is_alive(): continue try: vm.monitor.screendump(temp_filename)