From: Ian Jackson Subject: [OSSTEST PATCH 2/3] cs-bisection-step: Report conflict if basis pass/fail are wrong Date: Thu, 7 May 2015 00:45:50 +0100 Message-ID: <1430955951-23976-3-git-send-email-ian.jackson@eu.citrix.com> References: <1430955951-23976-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Yq90o-0000Ny-46 for xen-devel@lists.xenproject.org; Wed, 06 May 2015 23:45:58 +0000 In-Reply-To: <1430955951-23976-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org It can happen that the (for example) supposed basis pass (originally only tested on another host) failed (when reproduced, or for some other reason). When that happens do not attempt to get it to pass; instead, treat it the same way we would if we had actually got conflicting results at that revision. (Conversely, do not attempt to get a basis fail if the basis fail has already passed on the selected host. This is, as it happens, impossible in a bisection triggered by sg-report-flight with the current invocation arrangements - but cs-bisection-step should handle it correctly.) Signed-off-by: Ian Jackson --- cs-bisection-step | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cs-bisection-step b/cs-bisection-step index 14f3638..4200c16 100755 --- a/cs-bisection-step +++ b/cs-bisection-step @@ -771,7 +771,11 @@ sub need_repro ($$$) { my $fl= $n->{Flights} || []; foreach my $f (sort { $a->{Flight} <=> $b->{Flight} } @$fl) { next unless $f->{Flight} > $repro_lastflight; - next unless $f->{Result} eq $st; + if ($f->{Result} ne $st) { + return report_conflict($n, $what, 'Unexpected test results') + if $f->{Result} =~ m/^(?:pass|fail)$/; + next; + } print STDERR " ". ($repro_count ? "Repro" : "Result"). " found: flight $f->{Flight} ($st), for $what\n"; -- 1.7.10.4