From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wwtv6-0006OG-Vs for qemu-devel@nongnu.org; Tue, 17 Jun 2014 09:59:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wwtv0-0008Kd-Ma for qemu-devel@nongnu.org; Tue, 17 Jun 2014 09:59:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:4555) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wwtv0-0008KP-Dj for qemu-devel@nongnu.org; Tue, 17 Jun 2014 09:59:22 -0400 Date: Tue, 17 Jun 2014 19:29:17 +0530 From: Amit Shah Message-ID: <20140617135917.GA24644@grmbl.mre> References: <53A043CF.9030800@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53A043CF.9030800@redhat.com> Subject: Re: [Qemu-devel] [PATCH v3 00/18] migration: add static analysis tool to check vmstate compat List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: Juan Quintela , qemu list , Markus Armbruster , Alexander Graf , Paolo Bonzini , Andreas =?iso-8859-1?Q?F=E4rber?= , "Dr. David Alan Gilbert" On (Tue) 17 Jun 2014 [07:34:07], Eric Blake wrote: > > > On 06/17/2014 07:19 AM, Amit Shah wrote: > > Hello, > > > > v3: > > - Python script returns an error code: 0 if no errors, positive for > > the number of errors identified. > > Returning the error count as $? is unreliable - if you have exactly 256 > errors, that gives the same status as if you had success. Does your > code guarantee non-zero return in that case? No; any good ideas for this, then? Just limit to 255, and never bump upwards? I'm only introducing this so that future integration with 'make check' can be noticed by scripts. Amit