<p>Harald Welte <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/9557">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Osmocom_VTY_Functions: move f_vty_transceive_match from HLR to this library<br><br>f_vty_transceive_match will be used by future SGSN tests.<br><br>Change-Id: Ia69ab6d5639c2e10059f88c8cc97463820cb72e6<br>---<br>M hlr/HLR_Tests.ttcn<br>M library/Osmocom_VTY_Functions.ttcn<br>2 files changed, 8 insertions(+), 8 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/hlr/HLR_Tests.ttcn b/hlr/HLR_Tests.ttcn</span><br><span>index 90a00bf..b4cf195 100644</span><br><span>--- a/hlr/HLR_Tests.ttcn</span><br><span>+++ b/hlr/HLR_Tests.ttcn</span><br><span>@@ -172,14 +172,6 @@</span><br><span>     f_ipa_ctrl_start(mp_hlr_ip, mp_hlr_ctrl_port);</span><br><span> }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-function f_vty_transceive_match(TELNETasp_PT pt, charstring cmd, template charstring exp_ret) {</span><br><span style="color: hsl(0, 100%, 40%);">-  var charstring ret := f_vty_transceive_ret(pt, cmd);</span><br><span style="color: hsl(0, 100%, 40%);">-    if (not match(ret, exp_ret)) {</span><br><span style="color: hsl(0, 100%, 40%);">-          setverdict(fail, "Non-matching VTY response: ", ret);</span><br><span style="color: hsl(0, 100%, 40%);">-         self.stop;</span><br><span style="color: hsl(0, 100%, 40%);">-      }</span><br><span style="color: hsl(0, 100%, 40%);">-}</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span> private template (value) charstring t_subscr_prefix(hexstring imsi) :=</span><br><span>         "subscriber imsi " & hex2str(imsi) & " ";</span><br><span> </span><br><span>diff --git a/library/Osmocom_VTY_Functions.ttcn b/library/Osmocom_VTY_Functions.ttcn</span><br><span>index 2b74694..f118865 100644</span><br><span>--- a/library/Osmocom_VTY_Functions.ttcn</span><br><span>+++ b/library/Osmocom_VTY_Functions.ttcn</span><br><span>@@ -128,5 +128,13 @@</span><br><span>        f_vty_config2(pt, {config_node}, cmd);</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+function f_vty_transceive_match(TELNETasp_PT pt, charstring cmd, template charstring exp_ret) {</span><br><span style="color: hsl(120, 100%, 40%);">+      var charstring ret := f_vty_transceive_ret(pt, cmd);</span><br><span style="color: hsl(120, 100%, 40%);">+  if (not match(ret, exp_ret)) {</span><br><span style="color: hsl(120, 100%, 40%);">+                setverdict(fail, "Non-matching VTY response: ", ret);</span><br><span style="color: hsl(120, 100%, 40%);">+               self.stop;</span><br><span style="color: hsl(120, 100%, 40%);">+    }</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> </span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/9557">change 9557</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/9557"/><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: merged </div>
<div style="display:none"> Gerrit-Change-Id: Ia69ab6d5639c2e10059f88c8cc97463820cb72e6 </div>
<div style="display:none"> Gerrit-Change-Number: 9557 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: lynxis lazus <lynxis@fe80.eu> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>