Skip to content
Snippets Groups Projects
Commit 0c5fb803 authored by Leif Madsen's avatar Leif Madsen
Browse files

main/test.c reports erroneous CLI message.

(closes issue #17051)
Reported by: Nick_Lewis

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@253205 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 91d6592e
Branches
Tags
No related merge requests found
...@@ -708,7 +708,7 @@ static char *test_cli_execute_registered(struct ast_cli_entry *e, int cmd, struc ...@@ -708,7 +708,7 @@ static char *test_cli_execute_registered(struct ast_cli_entry *e, int cmd, struc
ast_cli(a->fd, "Running all available tests matching category %s\n\n", a->argv[3]); ast_cli(a->fd, "Running all available tests matching category %s\n\n", a->argv[3]);
test_execute_multiple(NULL, a->argv[3], a); test_execute_multiple(NULL, a->argv[3], a);
} else if (a->argc == 6) { /* run only a single test matching the category and name */ } else if (a->argc == 6) { /* run only a single test matching the category and name */
ast_cli(a->fd, "Running all available tests matching category %s and name %s\n\n", a->argv[5], a->argv[3]); ast_cli(a->fd, "Running all available tests matching category %s and name %s\n\n", a->argv[3], a->argv[5]);
test_execute_multiple(a->argv[5], a->argv[3], a); test_execute_multiple(a->argv[5], a->argv[3], a);
} else { } else {
return CLI_SHOWUSAGE; return CLI_SHOWUSAGE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment