[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 3/3] cs-bisection-step: Abandon repro attempts after a bit



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 <ian.jackson@xxxxxxxxxxxxx>
---
 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


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.