<p>neels has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18846">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">bsc: allow individual T_guard timeout via f_init()<br><br>The TC_ho_neighbor_config_* tests sometimes take longer than 30 seconds,<br>because they run multiple handovers. Since they don't have access to the<br>Test_CT, they cannot restart the T_guard. The simplest solution is to choose a<br>longer T_guard timeout for those tests specifically, by adding an argument to<br>f_init(). (A longer timeout for those tests is following in another patch.)<br><br>Why f_init()? Assigning a different default value to T_guard seems to not be<br>possible, but a different timeout value can be passed to T_guard.start(), which<br>happens in f_init().<br><br>Change-Id: I14918f6a44d6fa1bd5c3e133757ebdbe32813b33<br>---<br>M bsc/BSC_Tests.ttcn<br>1 file changed, 3 insertions(+), 3 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/46/18846/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn</span><br><span>index 302edfe..b84f1ca 100644</span><br><span>--- a/bsc/BSC_Tests.ttcn</span><br><span>+++ b/bsc/BSC_Tests.ttcn</span><br><span>@@ -104,7 +104,7 @@</span><br><span>      /*Configure T(tiar) over VTY, seconds */</span><br><span>     var integer g_bsc_sccp_timer_iar := 15 * 60;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-        /* global test case guard timer */</span><br><span style="color: hsl(120, 100%, 40%);">+    /* global test case guard timer (actual timeout value is set in f_init()) */</span><br><span>         timer T_guard := 30.0;</span><br><span> </span><br><span> }</span><br><span>@@ -384,7 +384,7 @@</span><br><span>  * \param nr_msc Number of virtual MSCs to bring up to connect to osmo-bsc.</span><br><span>  */</span><br><span> function f_init(integer nr_bts := NUM_BTS, boolean handler_mode := false, boolean allow_osmux := false,</span><br><span style="color: hsl(0, 100%, 40%);">-          integer nr_msc := 1) runs on test_CT {</span><br><span style="color: hsl(120, 100%, 40%);">+                integer nr_msc := 1, float guard_timeout := 30.0) runs on test_CT {</span><br><span>  var integer bssap_idx;</span><br><span>       var integer i;</span><br><span> </span><br><span>@@ -393,7 +393,7 @@</span><br><span>     }</span><br><span>    g_initialized := true;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-      T_guard.start;</span><br><span style="color: hsl(120, 100%, 40%);">+        T_guard.start(guard_timeout);</span><br><span>        activate(as_Tguard());</span><br><span> </span><br><span>   f_init_vty("VirtMSC");</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18846">change 18846</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/+/18846"/><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: I14918f6a44d6fa1bd5c3e133757ebdbe32813b33 </div>
<div style="display:none"> Gerrit-Change-Number: 18846 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>