From: Ian Jackson Subject: [OSSTEST PATCH 11/25] reporting: Show slightly better info for broken jobs Date: Wed, 17 Jun 2015 17:45:07 +0100 Message-ID: <1434559521-8751-12-git-send-email-ian.jackson@eu.citrix.com> References: <1434559521-8751-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 1Z5GTM-0004fg-LU for xen-devel@lists.xenproject.org; Wed, 17 Jun 2015 16:45:56 +0000 In-Reply-To: <1434559521-8751-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 Signed-off-by: Ian Jackson --- Osstest/Executive.pm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Osstest/Executive.pm b/Osstest/Executive.pm index 6edbfee..6c16fdd 100644 --- a/Osstest/Executive.pm +++ b/Osstest/Executive.pm @@ -204,7 +204,8 @@ sub report_run_getinfo ($) { my $status= $f->{status}; if ($status eq 'pass') { return { Summary => "($status)", Colour => $green }; - } elsif ($status eq 'fail') { + } elsif ($status eq 'fail' or $status eq 'broken') { + my $failcolour = $status eq 'fail' ? $red : $yellow; our $failstepq //= db_prepare(< "(unknown)", Colour => $yellow }; } elsif ($fs->{status} eq 'fail') { - return { Summary => "$fs->{testid}", Colour => $red }; + return { Summary => "$fs->{testid}", Colour => $failcolour }; + } elsif ($fs->{status} eq 'broken') { + return { Summary => "$fs->{testid} broken", Colour => $yellow }; } else { return { Summary => "$fs->{testid} $fs->{status}", - Colour => $red }; + Colour => $failcolour }; } } elsif ($status eq 'blocked') { return { Summary => "blocked", Colour => $purple }, -- 1.7.10.4