[Buildbot-devel] Port reservation for functional testing
P. Christeas
xrg at linux.gr
Mon May 28 19:23:58 UTC 2012
On Monday 28 May 2012, Dustin J. Mitchell wrote:
> then you could use some simple mechanism to "reserve" a port number,
> e.g., by creating /var/run/webapp/$port.port with O_EXCL|O_CREAT.
Let me just inform you that we've been doing that in OpenERP tests: the
buildstep (which is a single one) aquires a port from a pool of resources, and
then feeds it to the build script.
https://github.com/xrg/openerp-buildbot/blob/bbot-
v3/openerp_buildbot_master/bbot_oe/buildsteps/openerp.py#L226
And the re-usable class is defined in the 'openerp-libclient' project:
https://github.com/xrg/openerp-
libcli/blob/master/openerp_libclient/utils.py#L37
--
Say NO to spam and viruses. Stop using Microsoft Windows!
More information about the devel
mailing list