From: Ian Jackson Subject: Re: [OSSTEST v6 15/24] distros: add branch infrastructure Date: Tue, 12 May 2015 17:03:56 +0100 Message-ID: <21842.9324.594798.641061@mariner.uk.xensource.com> References: <1430905605.2660.187.camel@citrix.com> <1430906213-30108-15-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1430906213-30108-15-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("[OSSTEST v6 15/24] distros: add branch infrastructure"): > Since the distro nightlies are not version controlled we cannot use > the usual mechanisms for detecting regressions. Special case things > appropriately. We use an OLD_REVISION of "flight-NNN" to signify that > the old revision is another flight and not a tree revision. This all looks pretty good, except: > -if grep -xF $NEW_REVISION $branch.force-rev; then push=$OSSTEST_PUSH; fi > +if test -n "$NEW_REVISION" && grep -xF $NEW_REVISION $branch.force-rev; then push=$OSSTEST_PUSH; fi Why is it not sufficient to simply add " " around $NEW_REVISION ? Thanks, Ian.