From: Ian Jackson Subject: Re: [PATCH OSSTEST RFC v2 1/2] Add a flight to test qemu.org's ("mainline") master branch. Date: Mon, 12 May 2014 16:15:08 +0100 Message-ID: <21360.58748.38722.945018@mariner.uk.xensource.com> References: <1399898349.4428.9.camel@kazak.uk.xensource.com> <1399898375-5057-1-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: <1399898375-5057-1-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 ("[PATCH OSSTEST RFC v2 1/2] Add a flight to test qemu.org's ("mainline") master branch."): > The naming here is slightly confused because we call our branches of qemuu on > xenbits "qemu-upstream-foo", so I went with qemu-mainline to be distinct. IMO the tree in osstest/ should be called "qemu.git". It's not got a different git history to the qemu-upstream-foo. The "mainline" should be in the ref name. > +qemu-mainline) > + repo_tree_rev_fetch_git $branch \ > + $BASE_TREE_QEMU_MAINLINE xen-tested-master $LOCALREV_QEMU_MAINLINE Maybe some / in the branch name ? > 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. Ian.