From patchwork Tue Oct 13 11:48:35 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Goldish X-Patchwork-Id: 53391 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 n9DBv4MC011419 for ; Tue, 13 Oct 2009 11:57:05 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759575AbZJMLwQ (ORCPT ); Tue, 13 Oct 2009 07:52:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759566AbZJMLwP (ORCPT ); Tue, 13 Oct 2009 07:52:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54809 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759542AbZJMLwO (ORCPT ); Tue, 13 Oct 2009 07:52:14 -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 n9DBpmAi029373; Tue, 13 Oct 2009 07:51:48 -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 n9DBplNm001537; Tue, 13 Oct 2009 07:51:47 -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 n9DBpi30024063; Tue, 13 Oct 2009 07:51:46 -0400 From: Michael Goldish To: autotest@test.kernel.org, kvm@vger.kernel.org Cc: Michael Goldish Subject: [KVM-AUTOTEST PATCH 2/3] KVM test: kvm_subprocess.py: use only unbound methods as close() hooks Date: Tue, 13 Oct 2009 13:48:35 +0200 Message-Id: <1255434516-22142-2-git-send-email-mgoldish@redhat.com> In-Reply-To: <1255434516-22142-1-git-send-email-mgoldish@redhat.com> References: <1255434516-22142-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 diff --git a/client/tests/kvm/kvm_subprocess.py b/client/tests/kvm/kvm_subprocess.py index ede8081..a625315 100755 --- a/client/tests/kvm/kvm_subprocess.py +++ b/client/tests/kvm/kvm_subprocess.py @@ -490,7 +490,7 @@ class kvm_spawn: _wait(self.lock_server_running_filename) # Call all cleanup routines for hook in self.close_hooks: - hook() + hook(self) # Close reader file descriptors for fd in self.reader_fds.values(): try: @@ -583,7 +583,7 @@ class kvm_tail(kvm_spawn): """ # Add a reader and a close hook self._add_reader("tail") - self._add_close_hook(self._join_thread) + self._add_close_hook(kvm_tail._join_thread) # Init the superclass kvm_spawn.__init__(self, command, id, echo, linesep)