<p>Jenkins2 <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/6284">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Richard Mudgett: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, approved
Jenkins2: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">runtests.py: Add --keep-full-logs option<br><br>Keeps the full logs and pcaps around even if the test passes.<br><br>Change-Id: Ib33e31c7cecc78f1d9dc495967bc913177a96ffd<br>---<br>M runtests.py<br>1 file changed, 5 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/runtests.py b/runtests.py<br>index d057f09..d684f86 100755<br>--- a/runtests.py<br>+++ b/runtests.py<br>@@ -105,6 +105,7 @@<br> self.stdout = ""<br> self.timeout = timeout<br> self.cleanup = options.cleanup<br>+ self.keep_full_logs = options.keep_full_logs<br> self.skipped_reason = ""<br> <br> assert self.test_name.startswith('tests/')<br>@@ -181,7 +182,7 @@<br> self._process_valgrind()<br> self._process_ref_debug()<br> <br>- if not self.passed:<br>+ if not self.passed or self.keep_full_logs:<br> self._archive_logs()<br> elif self.cleanup:<br> try:<br>@@ -862,6 +863,9 @@<br> dest="pcap", default=False,<br> help="Capture packets. Output will be in "<br> " the test's log directory as packet.pcap.")<br>+ parser.add_option("--keep-full-logs", action="store_true",<br>+ dest="keep_full_logs", default=False,<br>+ help="Keep full logs even if test passes.")<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/6284">change 6284</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/6284"/><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: merged </div>
<div style="display:none"> Gerrit-Change-Id: Ib33e31c7cecc78f1d9dc495967bc913177a96ffd </div>
<div style="display:none"> Gerrit-Change-Number: 6284 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>