From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOIoz-0002Bg-Ir for qemu-devel@nongnu.org; Tue, 16 Oct 2012 21:53:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TOIoy-0008Jf-NJ for qemu-devel@nongnu.org; Tue, 16 Oct 2012 21:53:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:22608) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOIoy-0008Ja-Et for qemu-devel@nongnu.org; Tue, 16 Oct 2012 21:53:20 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q9H1rJrV019358 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 16 Oct 2012 21:53:19 -0400 Date: Tue, 16 Oct 2012 22:54:15 -0300 From: Luiz Capitulino Message-ID: <20121016225415.5541ef77@doriath.home> In-Reply-To: <1350334682-27158-1-git-send-email-jcody@redhat.com> References: <1350334682-27158-1-git-send-email-jcody@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] qmp: fix __accept() in qmp.py List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jeff Cody Cc: kwolf@redhat.com, qemu-devel@nongnu.org On Mon, 15 Oct 2012 16:58:02 -0400 Jeff Cody wrote: > In QEMUMonitorProtocol, commit e9d17b6 removed the __sockfile creation > from __negotiate_capabilities(), which breaks _accept(). This causes > failures in qemu-io python based tests (i.e. tests 030 and 040). > > This patch creates the sockfile in __accept() as well. > > Signed-off-by: Jeff Cody Acked-by: Luiz Capitulino > --- > QMP/qmp.py | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/QMP/qmp.py b/QMP/qmp.py > index 33c7d36..32510a1 100644 > --- a/QMP/qmp.py > +++ b/QMP/qmp.py > @@ -96,6 +96,7 @@ class QEMUMonitorProtocol: > @raise QMPCapabilitiesError if fails to negotiate capabilities > """ > self.__sock, _ = self.__sock.accept() > + self.__sockfile = self.__sock.makefile() > return self.__negotiate_capabilities() > > def cmd_obj(self, qmp_cmd):