[Buildbot-devel] Port reservation for functional testing
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.
And the re-usable class is defined in the 'openerp-libclient' project:
Say NO to spam and viruses. Stop using Microsoft Windows!
More information about the devel