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

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



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:08:03-2349-sitesummary
> /var/lib/sitesummary/tmpstorage/127.0.0.1-2017-07-06T01:08:03-2349-sitesummary.tar.gz
> /var/lib/sitesummary/www
> /var/lib/sitesummary/www/index.html
> /var/lib/sitesummary/entries
> error: did not find entry
> info: terminating script
> autopkgtest [01:08:04]: test test-server-client: -----------------------]
> 
> It look like the server is still busy unpacking the submitted entry, and
> have not yet had time to move the relevant files under entries/.
> 
> Anyone got any idea how we can best avoid the race?  'sleep 10' seem
> like such a crude solution...
 
The below one should work (even sleep 1 seems to be enough).

--- a/test-server-client	2017-07-07 11:16:36.000000000 +0200
+++ b/test-server-client	2017-07-07 12:16:17.406332996 +0200
@@ -26,6 +26,7 @@
 service apache2 restart
 
 sitesummary-client
+sleep 2
 
 find /var/lib/sitesummary
 

Wolfgang

Attachment: signature.asc
Description: PGP signature


Reply to: