<p>Corey Farrell has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/9915">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">runtests.py: Ensure unicode in self.stdout.<br><br>When REF_DEBUG failed it was causing a failure when generating<br>asterisk-test-suite-report.xml. Any use of u"unicode" strings forces<br>the the whole self.stdout variable to become unicode, this seems to<br>prevent the error.<br><br>I believe this error only occurs when the test itself produces no<br>output but fails, as is often the case when a test passes but REF_DEBUG<br>detects leaks.<br><br>Change-Id: I74e1565313586f5f0b324fe4f899c16416e98022<br>---<br>M runtests.py<br>1 file changed, 1 insertion(+), 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/15/9915/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/runtests.py b/runtests.py</span><br><span>index 4ac904a..3f6ef9c 100755</span><br><span>--- a/runtests.py</span><br><span>+++ b/runtests.py</span><br><span>@@ -110,7 +110,7 @@</span><br><span> self.test_relpath = self.test_name[6:]</span><br><span> </span><br><span> def stdout_print(self, msg):</span><br><span style="color: hsl(0, 100%, 40%);">- self.stdout += msg + "\n"</span><br><span style="color: hsl(120, 100%, 40%);">+ self.stdout += msg + u"\n"</span><br><span> print(msg)</span><br><span> </span><br><span> def run(self):</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/9915">change 9915</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/9915"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: testsuite </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I74e1565313586f5f0b324fe4f899c16416e98022 </div>
<div style="display:none"> Gerrit-Change-Number: 9915 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>