From: Ian Campbell Subject: Re: [PATCH OSSTEST v2 12/15] distros: support PV guest install from Debian netinst media. Date: Fri, 2 May 2014 15:07:04 +0100 Message-ID: <1399039624.6043.31.camel@kazak.uk.xensource.com> References: <1398681672.29700.55.camel@kazak.uk.xensource.com> <1398681696-2773-12-git-send-email-ian.campbell@citrix.com> <21347.42311.385765.653968@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <21347.42311.385765.653968@mariner.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 Jackson Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Fri, 2014-05-02 at 15:01 +0100, Ian Jackson wrote: > Ian Campbell writes ("[PATCH OSSTEST v2 12/15] distros: support PV guest install from Debian netinst media."): > > +sub setup_netinst($$$) > > +{ > ... > > + # Use the MD5SUMs file as an index > > + logm("Fetch index from $baseurl/MD5SUMS"); > > + open C, "curl $baseurl/MD5SUMS|" or die "curl: $!"; > > This needs to be done in a way that has a timeout. I don't know what > curl's default is but I think it would be best to arrange to use cmd > in TestSupport.pm somehow. (Maybe directly, in which case it needs to > be exported.) I'll investigate. Is doing this from the test controller OK, moving it to the test dom0 would nicely fix thistoo. > > + target_cmd_root($ho, < > + cd $didir && jigdo-lite --noask $netinst_jigdo > > +END > > Can you indent the script line so this is easier to read ? Yes. > > + store_runvar("$gho->{Guest}_netinst_jigdo", $netinst_jigdo); > > + > > + return (< > +bootloader = "pygrub" > > +bootloader_args = ["--kernel=$props->{IsoPath}/vmlinuz", "--ramdisk=$props->{IsoPath}/initrd.gz"] > > Could be wrapped. Ack.