Received: from eggs.gnu.org ([2001:4830:134:3::10]:56980) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcA8X-0006O0-Lf for qemu-devel@nongnu.org; Tue, 23 Aug 2016 07:44:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bcA8P-0004Xm-JV for qemu-devel@nongnu.org; Tue, 23 Aug 2016 07:44:57 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:44557) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcA8P-0004Xd-AO for qemu-devel@nongnu.org; Tue, 23 Aug 2016 07:44:49 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u7NBi9OE050522 for ; Tue, 23 Aug 2016 07:44:47 -0400 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 24yaus8xgp-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 23 Aug 2016 07:44:47 -0400 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 23 Aug 2016 12:44:44 +0100 From: Sascha Silbe In-Reply-To: <20160819131202.19369-1-mreitz@redhat.com> References: <20160819131202.19369-1-mreitz@redhat.com> Date: Tue, 23 Aug 2016 13:44:41 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-Id: <874m6blnfa.fsf@oc4731375738.ibm.com> Subject: Re: [Qemu-devel] [PATCH for-2.8] iotests: Do not rely on unavailable domains in 162 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , qemu-block@nongnu.org Cc: Kevin Wolf , qemu-devel@nongnu.org, Stefan Hajnoczi Dear Max, Max Reitz writes: [tests/qemu-iotests/162] [...] > +# (We need to set up a server here, because the error message for "Conne= ction > +# refused" does not contain the destination port) > +$QEMU_NBD -p 42424 -f raw null-co:// & > +sleep 0.5 > +$QEMU_IMG info 'json:{"driver": "nbd", "host": "localhost", "port": 4242= 4}' \ > + | grep '^image' Using a fixed port number means multiple users won't be able to run this in parallel. That it's only open for a short time actually makes the issue a bit worse as it's hard to understand just why the test failed intermittently. Is there a way to have qemu-nbd use a random port and print the port number? Sascha --=20 Softwareentwicklung Sascha Silbe, Niederhofenstra=C3=9Fe 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641