[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH] timeout: adjust timeout when running nested tests
Expand the timeouts when the host is nested. The current algorithm uses base_timeout * 2 ^ nesting_level. This fixes the issues reported by the nested tests on elbling boxes: http://logs.test-lab.xenproject.org/osstest/logs/149283/ Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx> --- Osstest/TestSupport.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 1c13e2af..ff749a32 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -436,6 +436,7 @@ END sub target_adjust_timeout ($$) { my ($ho,$timeoutref) = @_; # $ho might be a $gho + my $nestinglvl = $ho->{NestingLevel} || $ho->{Host}{NestingLevel}; my $adjust = sub { my ($factor, $what) = @_; return unless defined $factor; @@ -450,6 +451,9 @@ sub target_adjust_timeout ($$) { $adjust->(guest_var($ho,$guest_var), "guest variable $guest_var"); } $adjust->(get_target_property($ho,"TimeoutFactor"), "target TimeoutFactor"); + if ($nestinglvl) { + $adjust->(1 << $nestinglvl, "nesting level"); + } } #---------- running commands eg on targets ---------- -- 2.26.0
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |