Change in osmo-ttcn3-hacks[master]: library: VTY: Allow hyphens in VTY prompt

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Wed Dec 4 22:26:33 UTC 2019


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/16482 )

Change subject: library: VTY: Allow hyphens in VTY prompt
......................................................................

library: VTY: Allow hyphens in VTY prompt

Old versions of osmo-pcu print "Osmo-PCU" as VTY prompt. This commit
allows supporting this kind of prompt.

Change-Id: Ia5acbbe5828901726f7f15c4a99d596e94914c4b
---
M library/Osmocom_VTY_Functions.ttcn
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/library/Osmocom_VTY_Functions.ttcn b/library/Osmocom_VTY_Functions.ttcn
index b61a655..a1724e9 100644
--- a/library/Osmocom_VTY_Functions.ttcn
+++ b/library/Osmocom_VTY_Functions.ttcn
@@ -63,9 +63,9 @@
 
 		T.start;
 		alt {
-			[] pt.receive(pattern "\w+" & VTY_VIEW_SUFFIX) { };
-			[] pt.receive(pattern "\w+\# ") { };
-			[] pt.receive(pattern "\w+\(*\)\# ") { };
+			[] pt.receive(pattern "[\w-]+" & VTY_VIEW_SUFFIX) { };
+			[] pt.receive(pattern "[\w-]+\# ") { };
+			[] pt.receive(pattern "[\w-]+\(*\)\# ") { };
 			[] pt.receive(t_vty_unknown) {
 				testcase.stop(fail, "VTY: Unknown Command");
 				};

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/16482
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ia5acbbe5828901726f7f15c4a99d596e94914c4b
Gerrit-Change-Number: 16482
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191204/7af08eaa/attachment.htm>


More information about the gerrit-log mailing list