From: Ian Jackson Subject: [OSSTEST PATCH 5/6] sg-report-flight: Include actual status in column-head cells Date: Fri, 1 May 2015 16:02:47 +0100 Message-ID: <1430492568-1761-6-git-send-email-ian.jackson@eu.citrix.com> References: <21827.30808.198577.574772@mariner.uk.xensource.com> <1430492568-1761-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.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YoCTI-0005sq-Ge for xen-devel@lists.xenproject.org; Fri, 01 May 2015 15:03:20 +0000 In-Reply-To: <1430492568-1761-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 Adjust the $cell_html anonymous sub to include the actual step status unless it is told not to (by passing it a new $core_only argument). Change the main body call site to pass this option. As a result the column headings now include the step status. Signed-off-by: Ian Jackson --- sg-report-flight | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sg-report-flight b/sg-report-flight index 7c9e52e..016f8d7 100755 --- a/sg-report-flight +++ b/sg-report-flight @@ -953,7 +953,7 @@ END print H ""; my $cell_html = sub { - my ($ei) = @_; + my ($ei, $core_only) = @_; # => ($h, $priority); my $s= $ei->{Step}; my $sum_core= $ei->{SummaryCore}; @@ -965,6 +965,7 @@ END $sum_core= $s->{status}; ($bgc,$priority)= html_status2_colour_priority($s->{status}); } else { + $sum_core= "$s->{status} $sum_core" unless $core_only; ($bgc,$priority) = $ei->{Blocker} eq 'regression' ? ('#ff8888',400) @@ -1039,7 +1040,7 @@ END if ($ei) { $deferred_cells->(1); my $s= $ei->{Step}; - my ($h,$priority,$ch) = $cell_html->($ei); + my ($h,$priority,$ch) = $cell_html->($ei, 1); print H "",$h,""; } else { $ndeferred++; -- 1.7.10.4