From: Ian Jackson Subject: Re: [PATCH OSSTEST] Implement direct IPMI power control. (Was: Re: [xen-unstable test] 27133: regressions - trouble: broken/fail/pass) Date: Mon, 16 Jun 2014 11:00:09 +0100 Message-ID: <21406.49193.667972.994850@mariner.uk.xensource.com> References: <1402909162.9560.2.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1402909162.9560.2.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: xen-devel@lists.xensource.com, "xen.org" List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("[PATCH OSSTEST] Implement direct IPMI power control. (Was: Re: [Xen-devel] [xen-unstable test] 27133: regressions - trouble: broken/fail/pass)"): > diff --git a/Osstest/PDU/ipmi.pm b/Osstest/PDU/ipmi.pm > new file mode 100644 > index 0000000..45d2946 > --- /dev/null > +++ b/Osstest/PDU/ipmi.pm > @@ -0,0 +1,67 @@ ... > + my $status = `$cmd power status` > + or die "Cannot retrieve current power status"; > + chop($status); This all looks fine except that you should be using "chomp" here rather than "chop". (You nearly always want chomp.) With that changed, you can put my ack on it. Ian.