]> xenbits.xensource.com Git - people/iwj/osstest.git/commitdiff
sg-report-flight: Fix --that-flight not to look at branch "any pass"
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 7 Apr 2017 11:38:15 +0000 (12:38 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Fri, 7 Apr 2017 15:46:46 +0000 (16:46 +0100)
If --that-flight was specified, we want to compare with just that
flight, and not search the branch for a previous pass.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
sg-report-flight

index e25df2cddb34866fff49fbabe114d3432258fa61..7d2bc66077e5b462e45fc4afec473dec05a8ad3a 100755 (executable)
@@ -829,14 +829,16 @@ END
             next;
         }
 
-        $anypassq->execute($j->{job}, $s->{testid});
-        if (!$anypassq->fetchrow_hashref()) {
-            print MRO "never-passed $j->{job} $s->{testid} $st\n";
-            print DEBUG " never passed\n";
-            $failv->{Summary}= 'never pass';
-            $failv->{Blocker}= '';
-            next;
-        }
+       if (!defined $specver{that}{flight}) {
+           $anypassq->execute($j->{job}, $s->{testid});
+           if (!$anypassq->fetchrow_hashref()) {
+               print MRO "never-passed $j->{job} $s->{testid} $st\n";
+               print DEBUG " never passed\n";
+               $failv->{Summary}= 'never pass';
+               $failv->{Blocker}= '';
+               next;
+           }
+       }
 
        my @rtups;
        push @rtups, [ 10, 0, "baseline untested", undef ];