From patchwork Tue Oct 13 11:48:36 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Goldish X-Patchwork-Id: 53392 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 n9DBv4MD011419 for ; Tue, 13 Oct 2009 11:57:05 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759583AbZJMLwR (ORCPT ); Tue, 13 Oct 2009 07:52:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759567AbZJMLwR (ORCPT ); Tue, 13 Oct 2009 07:52:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:14387 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759568AbZJMLwP (ORCPT ); Tue, 13 Oct 2009 07:52:15 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9DBpnwW026115; Tue, 13 Oct 2009 07:51:49 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9DBpm6d001628; Tue, 13 Oct 2009 07:51:49 -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 n9DBpi31024063; Tue, 13 Oct 2009 07:51:47 -0400 From: Michael Goldish To: autotest@test.kernel.org, kvm@vger.kernel.org Cc: Michael Goldish Subject: [KVM-AUTOTEST PATCH 3/3] KVM test: kvm_subprocess.py: automatically close unreferenced shell sessions Date: Tue, 13 Oct 2009 13:48:36 +0200 Message-Id: <1255434516-22142-3-git-send-email-mgoldish@redhat.com> In-Reply-To: <1255434516-22142-2-git-send-email-mgoldish@redhat.com> References: <1255434516-22142-1-git-send-email-mgoldish@redhat.com> <1255434516-22142-2-git-send-email-mgoldish@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/client/tests/kvm/kvm_subprocess.py b/client/tests/kvm/kvm_subprocess.py index a625315..859aa2b 100755 --- a/client/tests/kvm/kvm_subprocess.py +++ b/client/tests/kvm/kvm_subprocess.py @@ -1010,6 +1010,10 @@ class kvm_shell_session(kvm_expect): self.status_test_command) + def __del__(self): + self.close() + + def set_prompt(self, prompt): """ Set the prompt attribute for later use by read_up_to_prompt.