<p>Michael Bradeen has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/testsuite/+/19152">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">testsuite: avoid hang on waitfullybooted<br><br>Python 3.6 compatibility change<br><br>ASTERISK-30208<br><br>Change-Id: Ieba157910e9c7422f3c54f4d31a89a4e99ec3c84<br>---<br>M lib/python/asterisk/asterisk.py<br>1 file changed, 16 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/52/19152/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 66c1124..1c0edfd 100644</span><br><span>--- a/lib/python/asterisk/asterisk.py</span><br><span>+++ b/lib/python/asterisk/asterisk.py</span><br><span>@@ -23,6 +23,8 @@</span><br><span> </span><br><span> from .config import ConfigFile</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+from subprocess import PIPE</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> from twisted.internet import reactor, protocol, defer, utils, error</span><br><span> from twisted.python.failure import Failure</span><br><span> </span><br><span>@@ -963,7 +965,7 @@</span><br><span>             completed = subprocess.run([self.ast_binary,</span><br><span>                 "-C", "%s" % os.path.join(self.astetcdir, "asterisk.conf"),</span><br><span>                 "-rx", "%s" % cli_cmd],</span><br><span style="color: hsl(0, 100%, 40%);">-                capture_output=True, encoding='utf-8')</span><br><span style="color: hsl(120, 100%, 40%);">+                stdout=PIPE, stderr=PIPE, encoding='utf-8')</span><br><span> </span><br><span>             if responsekey not in completed.stdout:</span><br><span>                 CLIRetVal = 2</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/testsuite/+/19152">change 19152</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/+/19152"/><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: Ieba157910e9c7422f3c54f4d31a89a4e99ec3c84 </div>
<div style="display:none"> Gerrit-Change-Number: 19152 </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>