<p>lynxis lazus has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18893">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">bts: fix TC_pcu_socket_verify_info_ind<br><br>The verify info ind is failing because a race condition while<br>the TC is connecting to the BTS.<br><br>Change-Id: I46b58e8e74d75cd5321f3cc9cabcc795ae42f88d<br>---<br>M bts/BTS_Tests.ttcn<br>1 file changed, 15 insertions(+), 0 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/93/18893/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 f98419d..1574fed 100644</span><br><span>--- a/bts/BTS_Tests.ttcn</span><br><span>+++ b/bts/BTS_Tests.ttcn</span><br><span>@@ -5160,6 +5160,21 @@</span><br><span> </span><br><span> f_init();</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ /* We do a disconnect + reconnect to ensure si3 has been received by the bts.</span><br><span style="color: hsl(120, 100%, 40%);">+ * We can not do sleep() + recv and expect a second info_ind will be received, because it could be received</span><br><span style="color: hsl(120, 100%, 40%);">+ * by bts before f_init() connects to the pcu.</span><br><span style="color: hsl(120, 100%, 40%);">+ */</span><br><span style="color: hsl(120, 100%, 40%);">+ f_pcuif_close(PCU, g_pcu_conn_id);</span><br><span style="color: hsl(120, 100%, 40%);">+ g_pcu_conn_id := -1;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ f_sleep(1.0);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ /* re-connect */</span><br><span style="color: hsl(120, 100%, 40%);">+ PCU.clear;</span><br><span style="color: hsl(120, 100%, 40%);">+ f_init_pcu(PCU, testcasename(), g_pcu_conn_id, g_pcu_last_info);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ f_sleep(2.0);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> /* Verify cell_id */</span><br><span> var uint16_t cell_id_si3 := si3.payload.si3.cell_id;</span><br><span> var uint16_t cell_id_pcu := g_pcu_last_info.u.info_ind.cell_id;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18893">change 18893</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/+/18893"/><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: I46b58e8e74d75cd5321f3cc9cabcc795ae42f88d </div>
<div style="display:none"> Gerrit-Change-Number: 18893 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: lynxis lazus <lynxis@fe80.eu> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>