Make osstest less obsessive about sticking to failing hosts if they
are persistently unavailable.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
my $cost= $start_time
+ $duration_for_cost
- - ($previously_failed ==@hids ? 366*86400 :
- $previously_failed_equiv==@hids ? 365*86400 :
+ - ($previously_failed ==@hids ? 7*86400 :
+ $previously_failed_equiv==@hids ? 6.5*86400 :
+ # We wait 7d extra to try a failing test on the same
+ # hardware, or 6.5d on `equivalent' hardware (as defined by
+ # equiv-* flags). Compared to `equivalent' hardware, we
+ # wait 12h to try it on exactly the same.
0)
+ ($previously_failed || $previously_failed_equiv
? (-$max_variation_bonus+$variation_bonus) : -$variation_bonus)