diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2016-11-28 18:32:45 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2016-11-28 18:32:45 +0100 |
| commit | 6a23719c75308da2e11b68d7407abe78a7717aaa (patch) | |
| tree | db7deea25a96b1d511eb16254795ed34b59cf636 /tests/test-commands.c | |
| parent | 64bf316f344f0a905853c08fc1a0b7888a7aed78 (diff) | |
tests: fixup for vtysh-grammar merge
Tests weren't updated for vtysh-grammar yet...
NB: things still fail since some CLI behaviour changed.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'tests/test-commands.c')
| -rw-r--r-- | tests/test-commands.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-commands.c b/tests/test-commands.c index b4613a567d..c0bc39f88f 100644 --- a/tests/test-commands.c +++ b/tests/test-commands.c @@ -146,7 +146,7 @@ static struct cmd_node keychain_key_node = }; static int -test_callback(struct cmd_element *cmd, struct vty *vty, int argc, const char *argv[]) +test_callback(const struct cmd_element *cmd, struct vty *vty, int argc, struct cmd_token *argv[]) { int offset; int rv; @@ -162,7 +162,7 @@ test_callback(struct cmd_element *cmd, struct vty *vty, int argc, const char *ar for (i = 0; i < argc; i++) { rv = snprintf(test_buf + offset, sizeof(test_buf) - offset, "%s'%s'", - (i == 0) ? ": " : ", ", argv[i]); + (i == 0) ? ": " : ", ", argv[i]->arg); if (rv < 0) abort(); offset += rv; @@ -332,7 +332,7 @@ test_run(struct prng *prng, struct vty *vty, const char *cmd, unsigned int edit_ for (j = 0; j < vector_active(descriptions); j++) { struct cmd_token *cmd = vector_slot(descriptions, j); - printf(" '%s' '%s'\n", cmd->cmd, cmd->desc); + printf(" '%s' '%s'\n", cmd->text, cmd->desc); } vector_free(descriptions); } |
