From: Ian Jackson Subject: [OSSTEST PATCH 04/14] Reporting: sg-report-flight: Fix undefined value in $worstrow[] Date: Tue, 30 Jun 2015 10:57:41 +0100 Message-ID: <1435658271-31823-5-git-send-email-ian.jackson@eu.citrix.com> References: <1435658271-31823-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.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z9sIl-0007P6-Ui for xen-devel@lists.xenproject.org; Tue, 30 Jun 2015 09:58:04 +0000 In-Reply-To: <1435658271-31823-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: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org The fallback entry in the worstrow search, used when a job has not been run at all, was wrong. Also, fix the doc comment which induced the mistake, and add a comment about the contents of @worst. Signed-off-by: Ian Jackson --- v2: Added the comment about @worst. --- sg-report-flight | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sg-report-flight b/sg-report-flight index 6481521..ebb9281 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); my $s= $ei->{Step}; my $sum_core= $ei->{SummaryCore}; $sum_core= $ei->{Summary} if !defined $sum_core; @@ -998,7 +998,9 @@ END my @worstrow1; my @worstrow2; foreach my $col (@cols) { - my @worst=(' bgcolor="#444444">',0); + # @worst = ( $cell_html->(stuff), $failing_stepid_html ) = + # ($step_cell_html, $priority, $colour_attr, $failing_stepid_html) + my @worst=('',0,'bgcolor="#444444"',''); foreach my $rowix (0..$#{ $fi->{GridRows} }) { my $ei= $fi->{GridGrid}{$col}[$rowix]; next unless $ei; -- 1.7.10.4