From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:51637) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2nNz-0007eK-W4 for qemu-devel@nongnu.org; Wed, 29 Feb 2012 12:32:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S2nNl-0000Cq-GT for qemu-devel@nongnu.org; Wed, 29 Feb 2012 12:32:19 -0500 Received: from mx1.redhat.com ([209.132.183.28]:24252) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2nNl-0000C2-7y for qemu-devel@nongnu.org; Wed, 29 Feb 2012 12:32:05 -0500 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 q1THW2Zd019139 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 29 Feb 2012 12:32:02 -0500 Message-ID: <4F4E6111.3060901@redhat.com> Date: Wed, 29 Feb 2012 10:32:01 -0700 From: Eric Blake MIME-Version: 1.0 References: <1330523973-14648-1-git-send-email-kwolf@redhat.com> In-Reply-To: <1330523973-14648-1-git-send-email-kwolf@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig334FCCF07443D106EC48D011" Subject: Re: [Qemu-devel] [PATCH] qemu-iotests: Filter out DOS line endings List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig334FCCF07443D106EC48D011 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 02/29/2012 06:59 AM, Kevin Wolf wrote: > This one makes it possible to run qemu-iotests on a Windows build using= Wine > and get somewhat meaningful results. >=20 > Signed-off-by: Kevin Wolf > --- > tests/qemu-iotests/common.filter | 8 +++++++- > 1 files changed, 7 insertions(+), 1 deletions(-) >=20 > diff --git a/tests/qemu-iotests/common.filter b/tests/qemu-iotests/comm= on.filter > index da77ede..fa26b62 100644 > --- a/tests/qemu-iotests/common.filter > +++ b/tests/qemu-iotests/common.filter > @@ -140,10 +140,16 @@ _filter_imgfmt() > sed -e "s#$IMGFMT#IMGFMT#g" > } > =20 > +# Removes \r from messages > +_filter_win32() > +{ > + sed -e 's/\r//g' POSIX does not require sed to recognize \r as a synonym for carriage return. You are better off using tr(1) (tr -d '\r') if all you want to do is strip carriage returns in a POSIX-compliant manner. Also be aware that on Solaris, you have to make sure you are using a PATH that first finds a POSIX-compliant tr. --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enig334FCCF07443D106EC48D011 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJPTmERAAoJEKeha0olJ0NquooH/3LYCOY+g02hYBeh6yA61AH7 WxrG2fhH3km9DWcHf0jpLc5kRGSoHtSA/AcUuBMI9KLpKKSD46hi6AhS3XGeXUW1 00grsEY6kiC+FvplZcqkQbJibtAg8yaphrxxg9q2Aq5JFlxKTh6TcBSA/YsDVp0q VIsTUIzAhbCeN+zE4Ew4Zfu03mt4TMtDc9wB8Rk2l/ir60Niu2cpHLWgrc2tGJ5/ 3QT/WMQ4oLR9YAzl8EUYwOLIAvv4bBC3tl/qpiF+V4uHKkSL5eDY65QCbM8mjKHb AQdQ9QeoxLDCM02/pMpFCO6xpAoiz1bsL9E5f+jmtAz5qcBHTagl6LVHgFghoCc= =lO9e -----END PGP SIGNATURE----- --------------enig334FCCF07443D106EC48D011--