<p>Corey Farrell <strong>posted comments</strong> on this change.</p><p><a href="https://gerrit.asterisk.org/8689">View Change</a></p><p>Patch set 3:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4;">Code-Review -1</span></p><p>(3 comments)</p><ul style="list-style: none; padding-left: 20px;"><li><p><a href="https://gerrit.asterisk.org/#/c/8689/3/lib/python/asterisk/test_suite_utils.py">File lib/python/asterisk/test_suite_utils.py:</a></p><ul style="list-style: none; padding-left: 20px;"><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/8689/3/lib/python/asterisk/test_suite_utils.py@220">Patch Set #3, Line 220:</a> <code style="font-family:monospace,monospace">RESERVED_PORTS = [ 40000+i for i in range(10000)]</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Static exclusion of 40,000-50,000?  Can you add a comment about why?</p><p style="white-space: pre-wrap; word-wrap: break-word;">In addition this list is used for both IPV4 and IPV6.  Not sure that's necessarily a problem it just means that if we return ipv4 port 6000 this will block us from using ipv6 6000.</p></li><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/8689/3/lib/python/asterisk/test_suite_utils.py@286">Patch Set #3, Line 286:</a> <code style="font-family:monospace,monospace">            ports = [port + i for i in range(step, num + 1, step)]</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">This tramples over the 'i' variable from 'for i in range(100):' , need to use a variable name that is not 'i'.  Maybe change the main loop to:<br>for attempt in range(100):</p></li><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/8689/3/lib/python/asterisk/test_suite_utils.py@295">Patch Set #3, Line 295:</a> <code style="font-family:monospace,monospace">        RESERVED_PORTS.append(port)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I think we need a 'res = True' or similar here (initialized to False with port = 0).  I know it's unlikely but before 'return port' we should throw an exception if we failed to find any port, rather than just returning the last one found.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/8689">change 8689</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/8689"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: testsuite </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I3da461123afc30e1f5ca12e65d289eaa42d6de00 </div>
<div style="display:none"> Gerrit-Change-Number: 8689 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 30 Mar 2018 11:07:11 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>