Received: from eggs.gnu.org ([2001:4830:134:3::10]:33635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgCOZ-00012Y-2v for qemu-devel@nongnu.org; Fri, 02 May 2014 08:16:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WgCOS-00008m-ES for qemu-devel@nongnu.org; Fri, 02 May 2014 08:16:51 -0400 Received: from roura.ac.upc.edu ([147.83.33.10]:57048 helo=roura.ac.upc.es) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgCOS-00007n-2p for qemu-devel@nongnu.org; Fri, 02 May 2014 08:16:44 -0400 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <20140430190928.7884.69380.stgit@fimbulvetr.bsc.es> <20140430190951.7884.90848.stgit@fimbulvetr.bsc.es> <5362424F.2040603@redhat.com> Date: Fri, 02 May 2014 14:16:39 +0200 In-Reply-To: <5362424F.2040603@redhat.com> (Eric Blake's message of "Thu, 01 May 2014 06:47:11 -0600") Message-ID: <87bnvgcr4o.fsf@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v10 4/4] qapi: Add a primitive to include other files from a QAPI schema file List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: =?utf-8?Q?Beno=C3=AEt?= Canet , Markus Armbruster , qemu-devel@nongnu.org, Luiz Capitulino Eric Blake writes: > On 04/30/2014 01:09 PM, Llu=C3=ADs Vilanova wrote: >> The primitive uses JSON syntax, and include paths are relative to the fi= le using the directive: >>=20 >> { 'include': 'path/to/file.json' } >>=20 >> Signed-off-by: Llu=C3=ADs Vilanova >> --- >> +++ b/tests/qapi-schema/include-after-err.json >> @@ -0,0 +1,2 @@ >> +{ 'include': 'include-simple-sub.json' } >> +{ 'command' 'missing-colon' } > In v9, Markus pointed out that 'include-after-err' is the wrong name for > this test - you are testing that an error after include is detected > correctly, and not the behavior of an error after an include. > It's not a showstopper (I could live with v10 going into the tree), so: > Reviewed-by: Eric Blake > But if you want to spin a v11, then rename the related files and the > Makefile rules to run the new name. As a rename is trivially testable > by 'make check' still passing, then if that's the only change you make, > I'm still okay if you keep my R-b in your v11 message. Right, I forgot to comment on this change. I did not want to change the name because right now all tests start with "include-", which makes it simple to= spot them on a directory list. Lluis --=20 "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth