<p>daniel <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/11451">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Add Misc_Helpers.ttcn to centralize TTCN3 shutdown handling<br><br>This function can now be called from anywhere to try and safely shutdown<br>a testcase. It is not optimal as we can't call "all component.stop" from<br>outside the mtc, but without any proper and orderly shutdown handling of<br>all our emulation components I believe this is the best we can do.<br><br>To use it:<br><br>import from Misc_Helpers all;<br><br>in your module and then call<br><br>Misc_Helpers.f_shutdown(__BFILE__, __LINE__);<br><br>You can also pass the function a verdict and a message and it will take care<br>of calling setverdict, but beware of the following:<br><br>While setverdict would accept any number of arguments as log message<br>and convert them to a log string f_shutdown expects one charstring.<br>It's possible to use the log2str function to use the log arguments in<br>setverdict for f_shutdown, for example<br><br>setverdict(fail, "Template didn't match: ", tmpl_foo);<br>would become<br>Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, log2str("Template didn't match: ", tmpl_foo));<br><br>Change-Id: I84d1aa6732f6b748d2bfdeac8f6309023717f267<br>---<br>M bsc-nat/gen_links.sh<br>M bsc/gen_links.sh<br>M ggsn_tests/gen_links.sh<br>M hlr/gen_links.sh<br>M lapdm/gen_links.sh<br>A library/Misc_Helpers.ttcn<br>M mgw/gen_links.sh<br>M msc/gen_links.sh<br>M pcu/gen_links.sh<br>M sccp/gen_links.sh<br>M selftest/gen_links.sh<br>M sgsn/gen_links.sh<br>M sip/gen_links.sh<br>M sysinfo/gen_links.sh<br>14 files changed, 41 insertions(+), 13 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/51/11451/2</pre><p>To view, visit <a href="https://gerrit.osmocom.org/11451">change 11451</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/11451"/><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: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: I84d1aa6732f6b748d2bfdeac8f6309023717f267 </div>
<div style="display:none"> Gerrit-Change-Number: 11451 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: daniel <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: daniel <dwillmann@sysmocom.de> </div>