From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLIPP-0005hT-Dh for qemu-devel@nongnu.org; Wed, 05 Mar 2014 15:27:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLIPK-0004CK-HM for qemu-devel@nongnu.org; Wed, 05 Mar 2014 15:27:19 -0500 Received: from mx1.redhat.com ([209.132.183.28]:38692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLIPK-0004CG-8F for qemu-devel@nongnu.org; Wed, 05 Mar 2014 15:27:14 -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 s25KRDa5017326 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 5 Mar 2014 15:27:13 -0500 Message-ID: <531788A0.3060802@redhat.com> Date: Wed, 05 Mar 2014 13:27:12 -0700 From: Eric Blake MIME-Version: 1.0 References: <1393860533-2063-1-git-send-email-mreitz@redhat.com> <1393860533-2063-11-git-send-email-mreitz@redhat.com> <53175E8F.1010904@redhat.com> <531785D4.8080506@redhat.com> In-Reply-To: <531785D4.8080506@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="7LAS1dFMRApWUUq65RXjgvnWO8Qmh1TOU" Subject: Re: [Qemu-devel] [PATCH 10/10] iotests: Add test for the JSON protocol List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , qemu-devel@nongnu.org Cc: Kevin Wolf , Stefan Hajnoczi This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --7LAS1dFMRApWUUq65RXjgvnWO8Qmh1TOU Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 03/05/2014 01:15 PM, Max Reitz wrote: >>> + \"filename\": \"$TEST_IMG\" >> Are we guaranteed that $TEST_IMG will not contain any " which would >> render this invalid JSON? >=20 > Probably not, but do you have an idea to circumvent this? If nothing else, we can at least be paranoid with something like: case $TEST_IMG in *'"'*) skip the test... ;; esac --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --7LAS1dFMRApWUUq65RXjgvnWO8Qmh1TOU 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 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJTF4igAAoJEKeha0olJ0NqQ9cH/jHJ3xjlADy5yoUu1naSgVun GXmZ1z1p4FvLrCEJRqwtgDnrHAQ3RH//Lt9AaZmFjKkJe5KoNv0CfFqztE8joLs3 nP7hlJggLkfaXdn4a8d0vv5MEpTj9a+p9i/OJ/6S9XEu2nGxCqOHHLsN/cTEX9qu HIlFABWdiXiRwkc5y6d4B9Z3RyA8VpVmK5bGyOO0ZaNpLiB8OBKBCq0oN0i2+WO0 ttKVTihKGzme/hP19Z23Oe0GTkZtAlgsd4yjZmD0SAWyFbeEpAJ/XXsZPZ+FIbbd eLa+h23DWo3xCnCQfVDzBJ78cQxpGKXJAGQqoS9DiqgFtb1wlueyft8mYVbMqTM= =1KkR -----END PGP SIGNATURE----- --7LAS1dFMRApWUUq65RXjgvnWO8Qmh1TOU--