Bug#867361: sitesummary: Fix autopkgtest to work in environments with http_proxy set

2017-07-07 Thread Wolfgang Schweer
On Thu, Jul 06, 2017 at 11:58:13AM -0700, Steve Langasek wrote: > On Thu, Jul 06, 2017 at 07:26:19AM +0200, Petter Reinholdtsen wrote: > > [Steve Langasek] > > > FWIW this does fix the problem with the test talking to the wrong server, > > > but the test still fails as shown at > > >

Bug#867361: sitesummary: Fix autopkgtest to work in environments with http_proxy set

2017-07-07 Thread Wolfgang Schweer
On Thu, Jul 06, 2017 at 07:26:19AM +0200, Petter Reinholdtsen wrote: > > Hm, look like a race condition: > > autopkgtest [01:08:03]: test test-server-client: [--- > /var/lib/sitesummary > /var/lib/sitesummary/tmpstorage > /var/lib/sitesummary/tmpstorage/127.0.0.1-2017-07-06T01

Bug#867361: sitesummary: Fix autopkgtest to work in environments with http_proxy set

2017-07-07 Thread Petter Reinholdtsen
[Wolfgang Schweer] > The below one should work (even sleep 1 seems to be enough). What about a loop looking for a file every 1 second, and exiting after X seconds if no file is found. It should handle more load while exiting as quickly as possible. -- Happy hacking Petter Reinholdtsen

Bug#867361: sitesummary: Fix autopkgtest to work in environments with http_proxy set

2017-07-07 Thread Wolfgang Schweer
On Fri, Jul 07, 2017 at 01:19:17PM +0200, Petter Reinholdtsen wrote: > What about a loop looking for a file every 1 second, and exiting after X > seconds if no file is found. It should handle more load while exiting > as quickly as possible. I guess something like this should work: --- a/test-s