From: Ian Jackson Date: Fri, 7 Apr 2017 11:38:15 +0000 (+0100) Subject: sg-report-flight: Fix --that-flight not to look at branch "any pass" X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=9035e67a0f6a0db2a3bf999ed716d61916687878;p=people%2Fiwj%2Fosstest.git sg-report-flight: Fix --that-flight not to look at branch "any pass" 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 --- diff --git a/sg-report-flight b/sg-report-flight index e25df2cd..7d2bc660 100755 --- a/sg-report-flight +++ b/sg-report-flight @@ -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 ];