From: Ian Jackson Subject: Re: [PATCH OSSTEST] Arrange to test migration from the previous Xen version Date: Fri, 24 Jul 2015 14:55:05 +0100 Message-ID: <21938.17337.240136.22359@mariner.uk.xensource.com> References: <1437744312-30373-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: <1437744312-30373-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] Arrange to test migration from the previous Xen version"): > There are several steps to this: Thanks. Much of this is very elegant. > +select_prevxenbranch () { > + local b > + local p > + for b in $(./mg-list-all-branches) ; do # already sorted by version > + case "$b" in > + xen*) Maybe these patterns should be "xen-" ? In case someone invents a tree `xenblargle'. Hrm, I see you took the example of ap-print-url, cri-common and mfi-common. > + # XXX could find latest pass on that branch and attempt to reuse. > + #bfiprevxen=... There is some nascent stuff in my smoke branch which might help with this. It's not suitable for public consumption. > + # To avoid the need for TREE_PREVQEMU, TREE_PREVOVMF etc we > + # only pass tree_xen and revision_xen here and therefore > + # pickup the versions implicitly selected by the > + # $REVISION_PREVXEN. > + # > + # XXX I think this doesn't break bisecting over the old > + # versions, since the bisectory will set tree_* based on what > + # was actually built, not based on this set of vars. You are correct. > --- a/ts-xen-install > +++ b/ts-xen-install > @@ -75,7 +75,8 @@ sub extract () { > > foreach my $part (@parts) { > target_extract_jobdistpath($ho, $part, "path_${part}dist", > - $r{"${part}buildjob"}, \%distpath); > + $r{"$ho->{Ident}_${part}buildjob"} // $r{"${part}buildjob"}, > + \%distpath); I approve. Ian.