From: Ian Jackson Subject: Re: [OSSTEST PATCH 03/13] Reporting: sg-report-flight: Fix undefined value in $worstrow[] Date: Tue, 30 Jun 2015 10:39:58 +0100 Message-ID: <21906.25582.291751.892547@mariner.uk.xensource.com> References: <1435598089-21647-1-git-send-email-ian.jackson@eu.citrix.com> <1435598089-21647-4-git-send-email-ian.jackson@eu.citrix.com> <1435655084.21469.29.camel@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 1Z9s1L-0005Gm-Hg for xen-devel@lists.xenproject.org; Tue, 30 Jun 2015 09:40:03 +0000 In-Reply-To: <1435655084.21469.29.camel@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 Campbell Cc: xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [OSSTEST PATCH 03/13] Reporting: sg-report-flight: Fix undefined value in $worstrow[]"): > On Mon, 2015-06-29 at 18:14 +0100, Ian Jackson wrote: ... > > diff --git a/sg-report-flight b/sg-report-flight > > index 6481521..117b609 100755 > > --- a/sg-report-flight > > +++ b/sg-report-flight > > @@ -965,7 +965,7 @@ END > > > > my $cell_html = sub { > > my ($ei, $core_only) = @_; > > - # => ($h, $priority); > > + # => ($h, $priority, $ch); > > This is a 3-tuple. > > > my $s= $ei->{Step}; > > my $sum_core= $ei->{SummaryCore}; > > $sum_core= $ei->{Summary} if !defined $sum_core; > > @@ -998,7 +998,7 @@ END > > my @worstrow1; > > my @worstrow2; > > foreach my $col (@cols) { > > - my @worst=(' bgcolor="#444444">',0); > > + my @worst=('',0,'bgcolor="#444444"',''); > > But this is a 4-tuple. Is there still a disconnect? > > Ah no, out of context here there is a @worst=@this followed by a "push > @worst". So this change is correct, but perhaps a comment would help > clarify? e.g > > # Result of $cell_html + Encoded string of failing stepid > > ? Good idea. I have added a comment, thanks. Ian.