From: Ian Campbell Subject: Re: [OSSTEST PATCH 1/3] ts-xen-install: nodhcp: Fix iface regexp Date: Tue, 22 Apr 2014 09:41:06 +0100 Message-ID: <1398156066.31707.10.camel@kazak.uk.xensource.com> References: <1397660720.24638.208.camel@kazak.uk.xensource.com> <1397747604-9321-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WcWGN-0008Eg-0z for xen-devel@lists.xenproject.org; Tue, 22 Apr 2014 08:41:11 +0000 In-Reply-To: <1397747604-9321-1-git-send-email-ian.jackson@eu.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 Jackson Cc: xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Thu, 2014-04-17 at 16:13 +0100, Ian Jackson wrote: > This regexp would never match because of the spurious $. Remove the > $ and also the preceding unnecessary \s*. > > Signed-off-by: Ian Jackson I've been running with this series in standalone mode on the system which I initially had this trouble with and it seems to be doing the right thing for both reused and freshly installed hosts. Tested-by: Ian Campbell > --- > ts-xen-install | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/ts-xen-install b/ts-xen-install > index 4a810e4..70e90ed 100755 > --- a/ts-xen-install > +++ b/ts-xen-install > @@ -221,7 +221,7 @@ sub nodhcp () { > next unless > m{^ \s* ( auto \s+ (\S+) ) \s* $}x || > m{^ \s* ( allow-hotplug \s+ (\S+) ) \s* $}x || > - m{^ \s* ( iface \s+ (\S+) \s+ inet \s+ ) \s* $}x ; > + m{^ \s* ( iface \s+ (\S+) \s+ inet \s+ ) }x ; > push @{ $candidates{$2} }, $1; > } > EI->error and die $!;