|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [OSSTEST PATCH v2 16/17] 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 <iwj@xxxxxxxxxxxxxx>
---
sg-report-flight | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/sg-report-flight b/sg-report-flight
index 51a409ed..fd266586 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;
--
2.20.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |