From: Ian Jackson Subject: Re: [OSSTEST PATCH 11/12] reporting: Show slightly better info for broken jobs Date: Tue, 16 Jun 2015 11:13:29 +0100 Message-ID: <21887.63177.519589.503167@mariner.uk.xensource.com> References: <1434388394-26099-1-git-send-email-ian.jackson@eu.citrix.com> <1434388394-26099-12-git-send-email-ian.jackson@eu.citrix.com> <1434445663.13744.73.camel@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 1Z4ns6-0005OD-Qi for xen-devel@lists.xenproject.org; Tue, 16 Jun 2015 10:13:34 +0000 In-Reply-To: <1434445663.13744.73.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, Ian Jackson List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [OSSTEST PATCH 11/12] reporting: Show slightly better info for broken jobs"): > On Mon, 2015-06-15 at 18:13 +0100, Ian Jackson wrote: > > Signed-off-by: Ian Jackson ... > > - } elsif ($status eq 'fail') { > > + } elsif ($status eq 'fail' or $status eq 'broken') { > > + my $failcolour = $status eq 'fail' ? $red : $yellow; > > our $failstepq //= db_prepare(< > SELECT * FROM steps > > WHERE flight=? AND job=? > > @@ -217,10 +218,12 @@ END > > if (!defined $fs) { > > return { Summary => "(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 }; > > Not $failcolour? Using $failcolour instead of $yellow there would only make a difference if the job was `fail' but the step was `broken'. So this is a bit of an edge case. But I think in that situation $red is probably better, so I will change this. Thanks, Ian.