From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDVeM-0006Yi-6C for qemu-devel@nongnu.org; Fri, 19 Oct 2018 10:21:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDVeL-0006yg-6a for qemu-devel@nongnu.org; Fri, 19 Oct 2018 10:21:14 -0400 References: <20181015141453.32632-1-mreitz@redhat.com> <20181015141453.32632-2-mreitz@redhat.com> From: Eric Blake Message-ID: <9a6fdd27-14dd-f26f-3137-8a741bd7cd16@redhat.com> Date: Fri, 19 Oct 2018 09:21:05 -0500 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 1/9] iotests: Make nbd-fault-injector flush List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , qemu-block@nongnu.org Cc: Kevin Wolf , Cleber Rosa , qemu-devel@nongnu.org, Eduardo Habkost , Vladimir Sementsov-Ogievskiy On 10/19/18 4:48 AM, Max Reitz wrote: > On 16.10.18 20:07, Eric Blake wrote: >> On 10/15/18 9:14 AM, Max Reitz wrote: >>> When closing a connection, make the nbd-fault-injector flush the sock= et. >>> Without this, the output is a bit unreliable with Python 3. >>> >>> Signed-off-by: Max Reitz >>> --- >>> =C2=A0 tests/qemu-iotests/083.out=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 9 +++++++++ >>> =C2=A0 tests/qemu-iotests/nbd-fault-injector.py | 1 + >>> =C2=A0 2 files changed, 10 insertions(+) >> >> I already had a complaint that the error message in 083.out should NOT >> be printing a message >=20 > You mean the NBD server itself, right? Yes, the NBD server should not be printing the redundant error messages=20 that 083.out exposes. >=20 >> (whether the server is python 2 and auto-flushe= s, >> or python 3 and needs an explicit flush, the message itself is >> pointless, and the test is racy as a result).=C2=A0 We may need to rev= isit >> this patch when that thread is resolved. >> >> https://lists.gnu.org/archive/html/qemu-devel/2018-08/msg01041.html >=20 > Well, it's not like the flush hurts either way. :-) True. On that grounds: Reviewed-by: Eric Blake --=20 Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org