Received: from eggs.gnu.org ([2001:4830:134:3::10]:57842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwaSX-0006gM-5j for qemu-devel@nongnu.org; Tue, 18 Oct 2016 15:54:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwaSW-0003xa-Bh for qemu-devel@nongnu.org; Tue, 18 Oct 2016 15:54:01 -0400 References: <1476786145-19162-1-git-send-email-kwolf@redhat.com> <1476786145-19162-5-git-send-email-kwolf@redhat.com> <64e87e2e-951c-4b5f-248c-bcfb495f2cca@redhat.com> From: Eric Blake Message-ID: <0f942da9-d245-a590-dd6b-968a644e805b@redhat.com> Date: Tue, 18 Oct 2016 14:53:53 -0500 MIME-Version: 1.0 In-Reply-To: <64e87e2e-951c-4b5f-248c-bcfb495f2cca@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="dIdERIaWwMPD7gH6rGmJ6Xrm24GOas3a4" Subject: Re: [Qemu-devel] [PATCH v3 4/4] qemu-iotests: Test creating floppy drives List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: John Snow , Kevin Wolf , qemu-block@nongnu.org Cc: mreitz@redhat.com, qemu-devel@nongnu.org, armbru@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --dIdERIaWwMPD7gH6rGmJ6Xrm24GOas3a4 From: Eric Blake To: John Snow , Kevin Wolf , qemu-block@nongnu.org Cc: mreitz@redhat.com, qemu-devel@nongnu.org, armbru@redhat.com Message-ID: <0f942da9-d245-a590-dd6b-968a644e805b@redhat.com> Subject: Re: [Qemu-devel] [PATCH v3 4/4] qemu-iotests: Test creating floppy drives References: <1476786145-19162-1-git-send-email-kwolf@redhat.com> <1476786145-19162-5-git-send-email-kwolf@redhat.com> <64e87e2e-951c-4b5f-248c-bcfb495f2cca@redhat.com> In-Reply-To: <64e87e2e-951c-4b5f-248c-bcfb495f2cca@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10/18/2016 02:45 PM, John Snow wrote: >=20 >=20 > On 10/18/2016 06:22 AM, Kevin Wolf wrote: >> This tests the different supported methods to create floppy drives and= >> how they interact. >> >> +function check_floppy_qtree() >> +{ >> + echo >> + echo Testing: "$@" | _filter_testdir >> + >> + # QEMU_OPTIONS contains -nodefaults, we don't want that here >> because the >> + # defaults are part of what should be checked here >> + echo "info qtree" | >> + QEMU_OPTIONS=3D"" do_run_qemu "$@" | _filter_win32 | >> + grep -zo '[[:cntrl:]]\( *\)dev: isa-fdc.*\([[:cntrl:]]\1 >> .*\)*[[:cntrl:]] *dev:' >=20 > This grep invocation doesn't appear to actually terminate with the '-z'= > option here. Not sure why, I haven't looked into the bash framework > much, hopefully it's not too hard for you to reproduce and correct. Is 'grep -z' even portable to BSD, or is it just a GNU extension? Would it be better to run the output through tr to convert things to a saner subset of characters before then grepping a text file? --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --dIdERIaWwMPD7gH6rGmJ6Xrm24GOas3a4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJYBn3RAAoJEKeha0olJ0NqGgwH/iXL6PKJhktowG8OfZbUCOcm diNX0OSZFZZ8OMxmWBROcBSfWm4j9gRzr3N8ZcywBjg+DY0WN0MFA3r1mvB1yCyx jfuOH1hmG9vb8eP98N9PAuR10j78TSD01w3tpmbL38lCiWFs1Zr3H/i5mPbahv4Y SRcERMCbsoGdmbS5otgN3cf5VP45+whVSsYUE+44s/ELT6ismbnd+LcLK8chdoFt Dqg/cHg8fNHI4COus+BW6vbU9SJkpLK8/Ua06g+lt9yifgIjVIyoa1DsCzyxk7D6 y5rfTbiwoN8Mp2J/5St5qQ7AqXcp1Kq7s/a4TEzqb0X5rUuA16ijpzYY8+X2lTs= =/XEP -----END PGP SIGNATURE----- --dIdERIaWwMPD7gH6rGmJ6Xrm24GOas3a4--