From: Ian Jackson Subject: Re: [PATCH RFC V2 4/6] Introduce ts-ovmf-debian-install Date: Thu, 12 Dec 2013 16:26:08 +0000 Message-ID: <21161.58272.84619.567681@mariner.uk.xensource.com> References: <1386778305-29995-1-git-send-email-wei.liu2@citrix.com> <1386778305-29995-5-git-send-email-wei.liu2@citrix.com> <1386838151.5488.90.camel@Solace> <20131212121622.GA21900@zion.uk.xensource.com> <1386851059.5488.102.camel@Solace> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1386851059.5488.102.camel@Solace> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dario Faggioli Cc: Wei Liu , ian.campbell@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Dario Faggioli writes ("Re: [Xen-devel] [PATCH RFC V2 4/6] Introduce ts-ovmf-debian-install"): > On gio, 2013-12-12 at 12:16 +0000, Wei Liu wrote: > > $xl is in fact toolstack()->{Command}. > > I know. So err, I'm not sure what your point was. Wei's code seems correct to me. > > > I don't know how important this is, though, as I don't think this has > > > much chances to work with xend, has it? > > > > No. Xend is deprecated so I don't bother fiddling with that. I think it's better to be consistent and always use toolstack()->{Command} even in tests which aren't going to work with xend. > > > Does this mean that the guest remains up after the end of the test? This > > > is also probably not a big deal, but, shouldn't we tear it down? > > > > I copied this from ts-redhat-install. > > > You're right, sorry for this. I thought I see gests being teared down > somewhere, but just finished running a (similar) test myself, and the > guest is up. Whether the script leaves the guest up is a matter for the individual script. ts-debian-install && ts-debian-fixup leaves it down, but most of the other ts-*-install scripts leave it up. I don't think an install script should do a shutdown just to provide a uniform interface. The corresponding knowledge of whether to run start or not is in sg-run-job. Thanks, Ian.