From: Ian Jackson Date: Mon, 12 Oct 2020 15:26:15 +0000 (+0100) Subject: sg-report-flight: Include count of blockers, and of jobs, in mro X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b24cbf1c136c00c85ffef7229d9d373ceb80126b;p=osstest.git sg-report-flight: Include count of blockers, and of jobs, in mro The mro will now contain exactly one of "blockers" or "tolerable". Nothing uses this yet. Signed-off-by: Ian Jackson --- diff --git a/sg-report-flight b/sg-report-flight index 51a409e..fd26658 100755 --- a/sg-report-flight +++ b/sg-report-flight @@ -1128,13 +1128,16 @@ END } if (!$heisen_why) { + my $n_blockers = scalar grep { $_->{Blocker} } @failures; + print MRO "njobs ", scalar(@{ $fi->{JobTexts} }), "\n"; + print MRO "nblockers $n_blockers\n" if $n_blockers; if (!@failures) { print MRO "tolerable\nperfect\n" or die $!; $fi->{Overall}.= "Perfect :-)\n"; } elsif (grep { $_->{Blocker} eq 'regression' } @failures) { $fi->{OutcomeSummary}= "regressions - $fi->{OutcomeSummary}"; $fi->{Overall}.= "Regressions :-(\n"; - } elsif (!grep { $_->{Blocker} } @failures) { + } elsif (!$n_blockers) { $fi->{OutcomeSummary}= "tolerable $fi->{OutcomeSummary}"; print MRO "tolerable\n" or die $! unless defined $heisen_why;