aboutsummaryrefslogtreecommitdiffstats
path: root/tests/vty
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-06-12 14:47:48 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-06-14 17:44:16 +0200
commit7e1b03f763350fefa1a68e45764e2076063fdb15 (patch)
tree5783342be56399c9e033163e4f415bc774c5d6e5 /tests/vty
parent14aadd5b6f12dddd055a7c82c19df4b5ec119843 (diff)
vty: command.c: Fix: multi-choice args are no longer passed incomplete to vty func
For instance, take command "multi0 (one|two|three)": If user executes "multi0 tw", VTY func will receive argv[0]="two" instead of argv[0]="tw". Fixes: OS#4045 Change-Id: I91b6621ac3d87fda5412a9b415e7bfb4736c8a9a
Diffstat (limited to 'tests/vty')
-rw-r--r--tests/vty/vty_transcript_test.vty12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/vty/vty_transcript_test.vty b/tests/vty/vty_transcript_test.vty
index 15577446..f2dbacbf 100644
--- a/tests/vty/vty_transcript_test.vty
+++ b/tests/vty/vty_transcript_test.vty
@@ -16,13 +16,13 @@ vty_transcript_test> multi0 two
ok argc=1 two
vty_transcript_test> multi0 o
-ok argc=1 o
+ok argc=1 one
vty_transcript_test> multi0 t
% Ambiguous command.
vty_transcript_test> multi0 th
-ok argc=1 th
+ok argc=1 three
vty_transcript_test> multi0
% Command incomplete.
@@ -39,13 +39,13 @@ vty_transcript_test> multi1 two
ok argc=1 two
vty_transcript_test> multi1 o
-ok argc=1 o
+ok argc=1 one
vty_transcript_test> multi1 t
% Ambiguous command.
vty_transcript_test> multi1 th
-ok argc=1 th
+ok argc=1 three
vty_transcript_test> multi1
ok argc=0
@@ -68,10 +68,10 @@ vty_transcript_test> multi2
ok argc=0
vty_transcript_test> multi0 thr
-ok argc=1 thr
+ok argc=1 three
vty_transcript_test> multi1 on
-ok argc=1 on
+ok argc=1 one
vty_transcript_test> multi2 t
% Ambiguous command.