[Plone-testing-team] Binding test servers to a free port

Asko Soukka asko.soukka at iki.fi
Wed Aug 28 10:52:38 UTC 2013


Hi,

what's wrong with using Jenkins PORT-allocator plugin? It assings port 
into environment variable, and if it's named ZSERVER_PORT it should just 
work.

-Asko

Timo Stollenwerk wrote:
>
> Hi,
>
> Christian Theune told me the other day that it is possible to bind a
> server process on port zero and that the process just takes the first
> port that is free:
>
> http://www.dnorth.net/2012/03/17/the-port-0-trick/
>
> I was wondering if we could use this to get rid of the port assigning on
> Jenkins. The only thing we would have to do is to write a Python script
> that reads the port that is automatically assigned and then use it as an
> input parameter for our tests (zope / robot testrunner), right?
>
> Anybody who would like to explore this?
>
> Cheers,
> Timo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-testing-team/attachments/20130828/d106431d/attachment.html>


More information about the Plone-testing-team mailing list