<p>neels has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19568">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">log: for VTY Unknown Command, fix weird log message<br><br>In f_vty_wait_for_prompt(), this:<br><br>   testcase.stop(fail, "VTY: Unknown Command")<br><br>outputs:<br><br>   failVTY: Unknown Command<br><br>The first stop() argument 'fail' is not actually a test verdict, but gets<br>rolled into a log output string, becoming "failVTY".<br><br>Fix that by simply using the normal pattern of setverdict() followed by<br>mtc.stop().<br><br>Change-Id: Id09986444de02c10b4fba582d454d54568b6e8a2<br>---<br>M library/Osmocom_VTY_Functions.ttcn<br>1 file changed, 2 insertions(+), 1 deletion(-)<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/68/19568/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/library/Osmocom_VTY_Functions.ttcn b/library/Osmocom_VTY_Functions.ttcn</span><br><span>index cb3434e..e5f615c 100644</span><br><span>--- a/library/Osmocom_VTY_Functions.ttcn</span><br><span>+++ b/library/Osmocom_VTY_Functions.ttcn</span><br><span>@@ -68,7 +68,8 @@</span><br><span>                    [] pt.receive(pattern "[\w-]+\(*\)\# ") { };</span><br><span>                       [] pt.receive(t_vty_unknown) {</span><br><span>                               if (strict) {</span><br><span style="color: hsl(0, 100%, 40%);">-                                   testcase.stop(fail, "VTY: Unknown Command");</span><br><span style="color: hsl(120, 100%, 40%);">+                                        setverdict(fail, "VTY: Unknown Command");</span><br><span style="color: hsl(120, 100%, 40%);">+                                   mtc.stop;</span><br><span>                            } else {</span><br><span>                                     log("VTY: Unknown Command (ignored)");</span><br><span>                                     buf := buf & rx;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19568">change 19568</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/+/19568"/><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: Id09986444de02c10b4fba582d454d54568b6e8a2 </div>
<div style="display:none"> Gerrit-Change-Number: 19568 </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>