From: Wei Liu Subject: Re: [OSSTest PATCH] More Debian HVM testcases Date: Thu, 24 Apr 2014 10:03:37 +0100 Message-ID: <20140424090337.GA22692@zion.uk.xensource.com> References: <1398274001-12729-1-git-send-email-wei.liu2@citrix.com> <1398328613.18537.237.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1398328613.18537.237.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 Campbell Cc: ian.jackson@eu.citrix.com, Wei Liu , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Thu, Apr 24, 2014 at 09:36:53AM +0100, Ian Campbell wrote: > On Wed, 2014-04-23 at 18:26 +0100, Wei Liu wrote: > > diff --git a/ts-debian-hvm-install b/ts-debian-hvm-install > > index c322d6b..f7ef549 100755 > > --- a/ts-debian-hvm-install > > +++ b/ts-debian-hvm-install > > @@ -28,7 +28,13 @@ if (@ARGV && $ARGV[0] =~ m/^--stage(\d+)$/) { $stage=$1; shift @ARGV; } > > > > our ($whhost,$gn) = @ARGV; > > $whhost ||= 'host'; > > -$gn ||= 'ovmf'; > > +defined($r{bios}) or die "Need to define which bios to use"; > > +if ($r{bios} =~ /ovmf/m) { > > + $gn ||= 'ovmf'; > > +} else { > > + # rombios or seabios > > + $gn ||= 'debianhvm'; > > +} > > Does the the guest name matter all that much? Can't it just be debianhvm > regardless of the BIOS type? That would simplify this and sg-run-jobs > wouldn't it? > Yes this can be done. What really matters is the bios parameter passed in. > In any case I'd think that sg-run-jobs ought to supply the name by > default, i.e. > > proc need-hosts/test-debianhvm-ovmf {} { return host } > proc run-job/test-debianhvm-ovmf {} { > run-ts . = ts-debian-hvm-install ovmf > test-guest ovmf > } > > proc need-hosts/test-debianhvm {} { return host } > proc run-job/test-debianhvm {} { > run-ts . = ts-debian-hvm-install debianhvm > test-guest debianhvm > } > > (and presumably this could then be refactored into a common function > with name parameter) > > I think this can be done. Time to learn some TCL... Wei.