summaryrefslogtreecommitdiff
path: root/tests/lib/cli/common_cli.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2021-11-07 15:49:17 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2021-11-08 14:06:21 +0100
commit865dd9fe0bff73a46deb174e988cf1d4f8ce5e78 (patch)
tree517e7daaf504e6fd2cee20fab638340cbfbe1add /tests/lib/cli/common_cli.h
parentfaf079ff7e835bd454dda0804e677c477489b3ed (diff)
tests: allow common_cli.c with logging enabled
common_cli.c disables logging by default so stdio is usable as vty without log messages getting strewn inbetween. This the right thing for most tests, but not all; sometimes we do want log messages. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'tests/lib/cli/common_cli.h')
-rw-r--r--tests/lib/cli/common_cli.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lib/cli/common_cli.h b/tests/lib/cli/common_cli.h
index 3042ff5b12..6660b27ef7 100644
--- a/tests/lib/cli/common_cli.h
+++ b/tests/lib/cli/common_cli.h
@@ -37,6 +37,8 @@ extern void test_init(int argc, char **argv);
*/
extern struct thread_master *master;
+extern int test_log_prio;
+
extern int dump_args(struct vty *vty, const char *descr, int argc,
struct cmd_token *argv[]);