From: Ian Campbell Subject: Re: [PATCH OSSTEST RFC v2 1/2] Add a flight to test qemu.org's ("mainline") master branch. Date: Tue, 13 May 2014 12:44:01 +0100 Message-ID: <1399981441.21867.20.camel@kazak.uk.xensource.com> References: <1399898349.4428.9.camel@kazak.uk.xensource.com> <1399898375-5057-1-git-send-email-ian.campbell@citrix.com> <21360.58748.38722.945018@mariner.uk.xensource.com> <1399908060.11314.8.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1399908060.11314.8.camel@kazak.uk.xensource.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 Jackson Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Mon, 2014-05-12 at 16:21 +0100, Ian Campbell wrote: > > > diff --git a/cri-common b/cri-common > > > index d82312c..d901383 100644 > > > --- a/cri-common > > > +++ b/cri-common > > > @@ -43,6 +43,7 @@ repo_tree_rev_fetch_git () { > > > select_xenbranch () { > > > case "$branch" in > > > xen*) tree=xen; xenbranch=$branch ;; > > > + qemu-mainline) tree=qemuu; xenbranch=xen-unstable qemuubranch=qemu-mainline;; > > > qemu-upstream-*) tree=qemuu; xenbranch=xen-${branch#qemu-upstream-};; > > > linux) tree=linux; xenbranch=xen-unstable ;; > > > linux-*) tree=linux; xenbranch=xen-unstable ;; > > > @@ -55,6 +56,9 @@ select_xenbranch () { > > > else > > > linuxbranch='' > > > fi > > > + if [ x$qemuubranch = x ]; then > > > + qemuubranch="qemu-upstream-${xenbranch#xen-}" > > > + fi > > > > Perhaps it would be easier to move the default setting of qemuubranch > > above the case, where it wouldn't need to be conditional. > > Yes, good suggestion. Actually no: It uses $xenbranch which is set by the case. Ian.