]> xenbits.xensource.com Git - osstest.git/commitdiff
sg-report-flight: Include count of blockers, and of jobs, in mro
authorIan Jackson <iwj@xenproject.org>
Mon, 12 Oct 2020 15:26:15 +0000 (16:26 +0100)
committerIan Jackson <iwj@xenproject.org>
Thu, 15 Oct 2020 15:07:59 +0000 (16:07 +0100)
The mro will now contain exactly one of "blockers" or "tolerable".

Nothing uses this yet.

Signed-off-by: Ian Jackson <iwj@xenproject.org>
sg-report-flight

index 51a409ede99862a4c6eb32a53d1aec08eb727d34..fd266586e0e181bda0fff3d3700b41f132de6931 100755 (executable)
@@ -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;