From: 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> 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> Cc: Michael Goldish To: autotest@test.kernel.org, kvm@vger.kernel.org Return-path: 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 In-Reply-To: <1257415272-9423-6-git-send-email-mgoldish@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: This should slow the rate of accumulation of monitor files in /tmp. Signed-off-by: Michael Goldish --- client/tests/kvm/kvm_vm.py | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) 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): -- 1.5.4.1