From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: OSSTest: How to resue Xen Date: Thu, 28 Aug 2014 19:11:53 +0100 Message-ID: <1409249513.21481.19.camel@citrix.com> References: <9E79D1C9A97CFD4097BCE431828FDD319E47A7@SHSMSX103.ccr.corp.intel.com> <20140828101645.GE13165@zion.uk.xensource.com> <9E79D1C9A97CFD4097BCE431828FDD319E4BE1@SHSMSX103.ccr.corp.intel.com> <20140828104714.GG13165@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140828104714.GG13165@zion.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: Wei Liu Cc: "Hu, Robert" , "Pang, LongtaoX" , 'Ian Jackson' , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Thu, 2014-08-28 at 11:47 +0100, Wei Liu wrote: > On Thu, Aug 28, 2014 at 10:23:58AM +0000, Hu, Robert wrote: > > > -----Original Message----- > > > From: xen-devel-bounces@lists.xen.org > > > [mailto:xen-devel-bounces@lists.xen.org] On Behalf Of Wei Liu > > > Sent: Thursday, August 28, 2014 6:17 PM > > > To: Hu, Robert > > > Cc: Wei Liu; Pang, LongtaoX; 'Ian Jackson'; Ian Campbell; xen-devel@lists.xen.org > > > Subject: Re: [Xen-devel] OSSTest: How to resue Xen > > > > > > On Thu, Aug 28, 2014 at 03:10:51AM +0000, Hu, Robert wrote: > > > > Hi, > > > > > > > > We know we can reuse host by setting OSSTEST_HOST_REUSE=1 in > > > environment. > > > > I'm wondering is there any way to reuse Xen install? And even guest reuse > > > possible? > > > > > > > > > > What is the difference between reusing host and "reuse Xen install"? > > > > > > If what you want is not to compile Xen every time I think OSSTest > > > already does that. > > > > > Reuse host prevents host reinstall. > > 'Reuse Xen' here I mentioned is not to re-invoke ts-xen-install in sg-run-job. In sg-run-job, once it invokes ts-xen-install, the latter will install Xen on host; not compiling it, which is done in build-* job. > > OIC. > > I don't know how to skip a specific test step. Perhap Ian and Ian > know some magic runes to do so. > > Looking at the source code, OSSTEST_HOST_REUSE sets $ho->{SharedReady}, > then ts-host-install and ts-xen-build-prep exits if it's set. Perhaps > you can have a similar check for ts-xen-install. That's the sort of thing I was thinking of, although perhaps not in a way which changes the existing semantics of OSSTEST_HOST_REUSE from "reuse the host but reinstall Xen" to "reuse the host including running Xen". If all you want to do is rerun a specific test step then ./standalone run-test rather than run-job lets you run a single ts-*. Ian.