From patchwork Thu Nov 5 10:01:12 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Goldish X-Patchwork-Id: 57867 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nA5A3sUT017007 for ; Thu, 5 Nov 2009 10:03:54 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753430AbZKEKDq (ORCPT ); Thu, 5 Nov 2009 05:03:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751252AbZKEKDq (ORCPT ); Thu, 5 Nov 2009 05:03:46 -0500 Received: from mx1.redhat.com ([209.132.183.28]:37957 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753430AbZKEKDo (ORCPT ); Thu, 5 Nov 2009 05:03:44 -0500 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nA5A3n1v028468; Thu, 5 Nov 2009 05:03:49 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nA5A3m36017259; Thu, 5 Nov 2009 05:03:49 -0500 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 nA5A3aFj017064; Thu, 5 Nov 2009 05:03:47 -0500 From: Michael Goldish To: autotest@test.kernel.org, kvm@vger.kernel.org Cc: Michael Goldish Subject: [KVM-AUTOTEST PATCH 7/7] KVM test: remove monitor socket file when destroying a VM Date: Thu, 5 Nov 2009 12:01:12 +0200 Message-Id: <1257415272-9423-7-git-send-email-mgoldish@redhat.com> In-Reply-To: <1257415272-9423-6-git-send-email-mgoldish@redhat.com> References: <1257415272-9423-1-git-send-email-mgoldish@redhat.com> <1257415272-9423-2-git-send-email-mgoldish@redhat.com> <1257415272-9423-3-git-send-email-mgoldish@redhat.com> <1257415272-9423-4-git-send-email-mgoldish@redhat.com> <1257415272-9423-5-git-send-email-mgoldish@redhat.com> <1257415272-9423-6-git-send-email-mgoldish@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py index 5781dbc..62a10b9 100755 --- a/client/tests/kvm/kvm_vm.py +++ b/client/tests/kvm/kvm_vm.py @@ -578,6 +578,10 @@ class VM: finally: if self.process: self.process.close() + try: + os.unlink(self.monitor_file_name) + except OSError: + pass def is_alive(self):