<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20544">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">bts: Make TC_pcu_socket_verify_info_ind pass<br><br>f_init / f_init_pcu simply save the first PCU_INFO_IND<br>in g_pcu_last_info.  That first one might still be wrong as<br>the PCU might connect to the BTS before the BTS is configured<br>accordingly.<br><br>Let's wait for 2 seconds and actually use the last (most recent)<br>PCU_INFO_IND for the test.<br><br>Change-Id: I45717605fde66bf870bcb6e2560f0fc753d05d95<br>---<br>M bts/BTS_Tests.ttcn<br>1 file changed, 9 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/44/20544/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 221c33e..57de013 100644</span><br><span>--- a/bts/BTS_Tests.ttcn</span><br><span>+++ b/bts/BTS_Tests.ttcn</span><br><span>@@ -5386,6 +5386,15 @@</span><br><span> </span><br><span>        f_init();</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ /* actually give the BTS some time to fully come up and to send a PCU INFO IND with the correct</span><br><span style="color: hsl(120, 100%, 40%);">+        * information */</span><br><span style="color: hsl(120, 100%, 40%);">+     timer T := 2.0;</span><br><span style="color: hsl(120, 100%, 40%);">+       T.start;</span><br><span style="color: hsl(120, 100%, 40%);">+      alt {</span><br><span style="color: hsl(120, 100%, 40%);">+ [] as_pcu_info_ind(PCU, g_pcu_conn_id, g_pcu_last_info) { repeat; }</span><br><span style="color: hsl(120, 100%, 40%);">+   [] T.timeout {}</span><br><span style="color: hsl(120, 100%, 40%);">+       }</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/+/20544">change 20544</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/+/20544"/><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: I45717605fde66bf870bcb6e2560f0fc753d05d95 </div>
<div style="display:none"> Gerrit-Change-Number: 20544 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>