diff mbox

[KVM-AUTOTEST,3/3] KVM test: kvm_subprocess.py: automatically close unreferenced shell sessions

Message ID 1255434516-22142-3-git-send-email-mgoldish@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Michael Goldish Oct. 13, 2009, 11:48 a.m. UTC
None
diff mbox

Patch

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.