]> xenbits.xensource.com Git - osstest.git/commitdiff
sg-report-flight: check for unjustifiability of a failure before checking whether...
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 14 Feb 2013 14:07:10 +0000 (14:07 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 14 Feb 2013 14:07:10 +0000 (14:07 +0000)
sg-report-flight

index 2f8bf1fb0c5423550b2711572b8a37dea109f461..92f7551825a426940b2014e388c7c5a9ee52983b 100755 (executable)
@@ -629,15 +629,6 @@ END
             next;
         }
 
-        $anypassq->execute($branch, $j->{job}, $s->{testid}, @blessings);
-        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 ($st eq 'blocked') {
            print MRO "blocked $s->{job} $s->{testid}\n";
            print DEBUG " blocked, call it justifiable\n";
@@ -653,6 +644,15 @@ END
             next;
         }
 
+        $anypassq->execute($branch, $j->{job}, $s->{testid}, @blessings);
+        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 ];