<p>Michael Bradeen has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/testsuite/+/18964">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">testsuite: Python3<br><br>Multiple changes for compatibility.  Assumes use of 1.1 brnach of<br>starpy and the python3 branch of yappcap.<br><br>Asterisk must also be updated to use new virtual environment<br><br>Changes also to print, replaced old library references, broke up<br>sub-parameters, etc.<br><br>Twisted input to realtime is bytes, while internally strings are used<br>so multiple changes required in order to convert back and forth.<br><br>rest_api multiple removals of xrange in favor of range and making<br>sure that all calls to write to stdout are in byte format.<br><br>rls required a change to use BytiesIO and a bytestring.<br><br>pjsua_mod removed, replaced with extension bank and sipp<br><br>chan sip tests using the pjsua app all needed a flush after writing<br>to stdin<br><br>Current failing tests marked with: "skip: 'Python3-issues'"<br><br>ASTERISK-26826<br><br>Change-Id: I28a00992e54f8515fef15f77b877e2dff7767830<br>---<br>M lib/python/asterisk/asterisk.py<br>1 file changed, 4 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/64/18964/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/lib/python/asterisk/asterisk.py b/lib/python/asterisk/asterisk.py</span><br><span>index ff96dad..1f049fd 100644</span><br><span>--- a/lib/python/asterisk/asterisk.py</span><br><span>+++ b/lib/python/asterisk/asterisk.py</span><br><span>@@ -465,7 +465,7 @@</span><br><span>                                                 cmd[0],</span><br><span>                                                 cmd, env=os.environ)</span><br><span>             # Begin the wait fully booted cycle</span><br><span style="color: hsl(0, 100%, 40%);">-            reactor.callLater(1, __execute_wait_fully_booted)</span><br><span style="color: hsl(120, 100%, 40%);">+            reactor.callLater(2, __execute_wait_fully_booted)</span><br><span> </span><br><span>         def __execute_wait_fully_booted():</span><br><span>             """Send the CLI command waitfullybooted"""</span><br><span>@@ -496,8 +496,9 @@</span><br><span>                 LOGGER.error(msg)</span><br><span>                 self._start_deferred.errback(Exception(msg))</span><br><span>             else:</span><br><span style="color: hsl(0, 100%, 40%);">-                msg = "Asterisk core waitfullybooted failed, attempting again"</span><br><span style="color: hsl(0, 100%, 40%);">-                LOGGER.debug(msg)</span><br><span style="color: hsl(120, 100%, 40%);">+                LOGGER.debug("Asterisk core waitfullybooted failed " +</span><br><span style="color: hsl(120, 100%, 40%);">+                             "with output '%s', attempting again..." %</span><br><span style="color: hsl(120, 100%, 40%);">+                             cli_command.value.err.decode('utf-8'))</span><br><span>                 reactor.callLater(1, __execute_wait_fully_booted)</span><br><span>             return cli_command</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/testsuite/+/18964">change 18964</a>. To unsubscribe, or for help writing mail filters, 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/c/testsuite/+/18964"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: testsuite </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: I28a00992e54f8515fef15f77b877e2dff7767830 </div>
<div style="display:none"> Gerrit-Change-Number: 18964 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Michael Bradeen <mbradeen@sangoma.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>