<p>laforge <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19635">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">bsc CBSP: clear all CBSP state between runs<br><br>Some tests may stop without cleaning up the CBSP state. Avoid affecting<br>subsequent tests by clearing the state for each f_cbsp_init_server().<br><br>Some ETWS CMD may still be left in the RSL queue (from the time period passing<br>between a stopped test and the next test starting up), so clear all RSL ports.<br><br>To be able to do so, move f_cbsp_reset_bss() to the cbsp_test_CT, from where it<br>can access both CBSP and IPA_RSL[] ports. All current callers are on<br>cbsp_test_CT anyway.<br><br>This patch should fix TC_cbsp_emerg_write_bts_cgi_cchan and<br>TC_cbsp_emerg_write_bts_cgi_cchan_disable, which so far break because of<br>leftover ETWS CMDs in the RSL queue from the preceding test run.<br><br>Change-Id: If7400a6624bb6dd9cacbcc733bdeba102d19e29c<br>---<br>M bsc/BSC_Tests_CBSP.ttcn<br>1 file changed, 8 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/bsc/BSC_Tests_CBSP.ttcn b/bsc/BSC_Tests_CBSP.ttcn</span><br><span>index 67fbd50..497ff80 100644</span><br><span>--- a/bsc/BSC_Tests_CBSP.ttcn</span><br><span>+++ b/bsc/BSC_Tests_CBSP.ttcn</span><br><span>@@ -139,6 +139,8 @@</span><br><span>    g_cbsp_msg_id := cbsp_msg_id;</span><br><span>        g_cbsp_ser_no := cbsp_ser_no;</span><br><span>        log("g_cbsp_msg_id=", g_cbsp_msg_id, "  g_cbsp_ser_no=", g_cbsp_ser_no);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+        f_cbsp_reset_bss(0);</span><br><span> }</span><br><span> private function f_expect_cbsp_restart() runs on cbsp_test_CT {</span><br><span>         interleave {</span><br><span>@@ -161,7 +163,12 @@</span><br><span>  return valueof(ts_CbspMsgContent(payload, payload_len));</span><br><span> }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-function f_cbsp_reset_bss(integer idx) runs on CBSP_Adapter_CT {</span><br><span style="color: hsl(120, 100%, 40%);">+function f_cbsp_reset_bss(integer idx) runs on cbsp_test_CT {</span><br><span style="color: hsl(120, 100%, 40%);">+      /* Make sure no CBSP ETWS commands from a previous CBSP test remain in the RSL queue */</span><br><span style="color: hsl(120, 100%, 40%);">+       IPA_RSL[0].clear;</span><br><span style="color: hsl(120, 100%, 40%);">+     IPA_RSL[1].clear;</span><br><span style="color: hsl(120, 100%, 40%);">+     IPA_RSL[2].clear;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>  var template (value) CBSP_PDU tx;</span><br><span>    timer T := 3.0;</span><br><span>      tx := ts_CBSP_RESET(cell_list := ts_BSSMAP_CIL_BSS);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19635">change 19635</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/+/19635"/><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: If7400a6624bb6dd9cacbcc733bdeba102d19e29c </div>
<div style="display:none"> Gerrit-Change-Number: 19635 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>