<p>neels has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18368">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">compare_results.py: use ansi colors<br><br>Change-Id: I2cfabc1364c53e6ee18b9471dcd7c681407d0473<br>---<br>M compare-results.py<br>1 file changed, 16 insertions(+), 7 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/68/18368/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/compare-results.py b/compare-results.py</span><br><span>index 556a063..ff5004e 100755</span><br><span>--- a/compare-results.py</span><br><span>+++ b/compare-results.py</span><br><span>@@ -22,13 +22,22 @@</span><br><span> re_testcase_end = re.compile(r'''(</testcase>|<testcase [^>]*/>)''')</span><br><span> re_failure = re.compile(r'''(<failure\b|<error\b)''')</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-RESULT_PASS = 'pass'</span><br><span style="color: hsl(0, 100%, 40%);">-RESULT_FAIL = 'pass->FAIL'</span><br><span style="color: hsl(0, 100%, 40%);">-RESULT_SKIP = 'skip'</span><br><span style="color: hsl(0, 100%, 40%);">-RESULT_XFAIL = 'xfail'</span><br><span style="color: hsl(0, 100%, 40%);">-RESULT_FIXED = 'xfail->PASS'</span><br><span style="color: hsl(0, 100%, 40%);">-RESULT_NEW_PASS = 'NEW: PASS'</span><br><span style="color: hsl(0, 100%, 40%);">-RESULT_NEW_FAIL = 'NEW: FAIL'</span><br><span style="color: hsl(120, 100%, 40%);">+RED = "\033[1;31m"</span><br><span style="color: hsl(120, 100%, 40%);">+GREEN = "\033[1;32m"</span><br><span style="color: hsl(120, 100%, 40%);">+YELLOW = "\033[1;33m"</span><br><span style="color: hsl(120, 100%, 40%);">+BLUE = "\033[1;34m"</span><br><span style="color: hsl(120, 100%, 40%);">+NOCOLOR = "\033[0;m"</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+def col(color, text):</span><br><span style="color: hsl(120, 100%, 40%);">+     return color + text + NOCOLOR</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+RESULT_PASS = col(GREEN, 'pass')</span><br><span style="color: hsl(120, 100%, 40%);">+RESULT_FAIL = col(RED, 'pass->FAIL')</span><br><span style="color: hsl(120, 100%, 40%);">+RESULT_SKIP = col(BLUE, 'skip')</span><br><span style="color: hsl(120, 100%, 40%);">+RESULT_XFAIL = col(YELLOW, 'xfail')</span><br><span style="color: hsl(120, 100%, 40%);">+RESULT_FIXED = col(GREEN, 'xfail->PASS')</span><br><span style="color: hsl(120, 100%, 40%);">+RESULT_NEW_PASS = col(GREEN, 'NEW: PASS')</span><br><span style="color: hsl(120, 100%, 40%);">+RESULT_NEW_FAIL = col(RED, 'NEW: FAIL')</span><br><span> </span><br><span> RESULTS = (</span><br><span>         RESULT_FAIL,</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18368">change 18368</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.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.osmocom.org/c/osmo-ttcn3-hacks/+/18368"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I2cfabc1364c53e6ee18b9471dcd7c681407d0473 </div>
<div style="display:none"> Gerrit-Change-Number: 18368 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>