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

Re: [PATCH] timeout: adjust timeout when running nested tests


  • To: Ian Jackson <ian.jackson@xxxxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Wed, 1 Apr 2020 18:53:23 +0200
  • Authentication-results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=roger.pau@xxxxxxxxxx; spf=Pass smtp.mailfrom=roger.pau@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 01 Apr 2020 16:53:39 +0000
  • Ironport-sdr: VIq4ZR+3leZ7SXaWn/vSHYaaKM6WWJl3MvHDMnYbCG082glRnGUh4YNqtuaAi2IJ/B/6qSvpq/ 1ucx5EVh4EZLXax6/DYcfeXYW138EzFNFL+6UNCKaficfWtVYqN7OstWuyL0lVCDaYLsO4WiEZ aZP0QYg73vd7LJl2v7R1uOcrVhngab34JKh9x/GFyXzLhQtWAaG6BVtQ0JosHyNsnj3tEkj2O+ W0IUr1S+lMRuGjMyZw1Tfuc35mXdaNZn9Rh8XDpC0nb9hr7KSYpBF4JZq5BZ9Azb6u7rwauCjq RG8=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Wed, Apr 01, 2020 at 05:45:21PM +0100, Ian Jackson wrote:
> Roger Pau Monne writes ("[PATCH] timeout: adjust timeout when running nested 
> tests"):
> >  sub target_adjust_timeout ($$) {
> >      my ($ho,$timeoutref) = @_; # $ho might be a $gho
> > +    my $nestinglvl = $ho->{NestingLevel} || $ho->{Host}{NestingLevel};
> 
> I think this wannts to be // not ||.  If you agree I will fix this up
> and commit.

Yes, I agree.

> Since what this does otherwise is to take all baremetal hosts and give
> them an empty Host hash due to autovivification.
> 
> > +    if ($nestinglvl) {
> > +        $adjust->(1 << $nestinglvl, "nesting level");
> > +    }
> 
> I still think the use of << is very odd and I can't resist moaning
> about it.  But you're the patch author so I will let you choose the
> style here.

Feel free to change to 2 ** $nestinglvl at commit, you are the
maintainer so it's important that you can read the code easily.

Thanks, Roger.



 


Rackspace

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