<p>George Joseph has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/6223">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">runtests.py: Add --stop-on-error<br><br>--stop-on-error: Stop the testsuite if a test fails. Useful for<br>troubleshooting.<br><br>Change-Id: Ide7878a1611987050166b1ccd982bd618395c3ed<br>---<br>M runtests.py<br>1 file changed, 5 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/23/6223/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/runtests.py b/runtests.py<br>index b73d5af..1083a50 100755<br>--- a/runtests.py<br>+++ b/runtests.py<br>@@ -666,6 +666,8 @@<br> self.total_time += t.time<br> if t.passed is False:<br> self.total_failures += 1<br>+ if self.options.stop_on_error:<br>+ break<br> <br> def __strip_illegal_xml_chars(self, data):<br> """<br>@@ -846,6 +848,9 @@<br> parser.add_option("--timeout", metavar='int', type=int,<br> dest="timeout", default=-1,<br> help="Abort test after n seconds of no output.")<br>+ parser.add_option("--stop-on-error", action="store_true",<br>+ dest="stop_on_error", default=False,<br>+ help="Stops the testsuite when a test fails.")<br> (options, args) = parser.parse_args(argv)<br> <br> # Install a signal handler for USR1/TERM, and use it to bail out of running<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6223">change 6223</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/6223"/><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: Ide7878a1611987050166b1ccd982bd618395c3ed </div>
<div style="display:none"> Gerrit-Change-Number: 6223 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>