From: Ian Jackson Subject: [OSSTEST PATCH 3/3] cs-bisection-step: Abandon repro attempts after a bit Date: Thu, 7 May 2015 00:45:51 +0100 Message-ID: <1430955951-23976-4-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.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Yq90n-0000Ns-8O for xen-devel@lists.xenproject.org; Wed, 06 May 2015 23:45:57 +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 If we have had a number of attempts at a repro, and none of them have produced a pass or fail, something is probably wrong and we should give up rather than carrying on. Handle this with the machinery we use for conflicting test results. Signed-off-by: Ian Jackson --- cs-bisection-step | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cs-bisection-step b/cs-bisection-step index 4200c16..192bbe7 100755 --- a/cs-bisection-step +++ b/cs-bisection-step @@ -769,6 +769,10 @@ sub need_repro ($$$) { return 1 if conflicted_warning($n, $what); my $fl= $n->{Flights} || []; + + return report_conflict($n, $what, 'Too many attempts') + if @$fl > 5; + foreach my $f (sort { $a->{Flight} <=> $b->{Flight} } @$fl) { next unless $f->{Flight} > $repro_lastflight; if ($f->{Result} ne $st) { -- 1.7.10.4