<p>daniel has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/9889">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">BTS_Tests: Call mtc.stop in f_shutdown() to fix sporadic test failures<br><br>mtc.stop cleanly shuts down a testcase. This avoids errors influencing<br>the result after the test completed (such as ports being shutdown with<br>messages arriving on them causing a dynamic test case error).<br><br>Change-Id: I0f6e10006f46db0d68796c7082497af90f74cd07<br>---<br>M bts/BTS_Tests.ttcn<br>1 file changed, 2 insertions(+), 4 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/89/9889/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn</span><br><span>index b77a70a..dbb8313 100644</span><br><span>--- a/bts/BTS_Tests.ttcn</span><br><span>+++ b/bts/BTS_Tests.ttcn</span><br><span>@@ -341,10 +341,8 @@</span><br><span> }</span><br><span> </span><br><span> function f_shutdown() runs on test_CT {</span><br><span style="color: hsl(0, 100%, 40%);">-  /* shut down all "externally interfaced" components first to avoid unclean shutdown */</span><br><span style="color: hsl(0, 100%, 40%);">-        vc_IPA.stop;</span><br><span style="color: hsl(0, 100%, 40%);">-    vc_RSL.stop;</span><br><span style="color: hsl(0, 100%, 40%);">-    f_ipa_ctrl_stop();</span><br><span style="color: hsl(120, 100%, 40%);">+    /* mtc.stop cleanly stops testcase execution to avoid unclean shutdown */</span><br><span style="color: hsl(120, 100%, 40%);">+     mtc.stop;</span><br><span> }</span><br><span> </span><br><span> /* Attach L1CTL to master test_CT (classic tests, non-handler mode) */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/9889">change 9889</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/9889"/><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-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I0f6e10006f46db0d68796c7082497af90f74cd07 </div>
<div style="display:none"> Gerrit-Change-Number: 9889 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: daniel <dwillmann@sysmocom.de> </div>