summaryrefslogtreecommitdiff
path: root/tests/lib/cli
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/cli')
-rw-r--r--tests/lib/cli/common_cli.c3
-rw-r--r--tests/lib/cli/test_cli.refout.in2
-rw-r--r--tests/lib/cli/test_commands.c2
3 files changed, 5 insertions, 2 deletions
diff --git a/tests/lib/cli/common_cli.c b/tests/lib/cli/common_cli.c
index 04f1e3253d..393b588745 100644
--- a/tests/lib/cli/common_cli.c
+++ b/tests/lib/cli/common_cli.c
@@ -80,11 +80,12 @@ int main(int argc, char **argv)
/* Library inits. */
cmd_init(1);
cmd_hostname_set("test");
+ cmd_domainname_set("test.domain");
vty_init(master);
memory_init();
yang_init();
- nb_init(NULL, 0);
+ nb_init(master, NULL, 0);
test_init(argc, argv);
diff --git a/tests/lib/cli/test_cli.refout.in b/tests/lib/cli/test_cli.refout.in
index af8f9ce56a..8f9959cc47 100644
--- a/tests/lib/cli/test_cli.refout.in
+++ b/tests/lib/cli/test_cli.refout.in
@@ -311,6 +311,7 @@ frr version @PACKAGE_VERSION@
frr defaults @DFLT_NAME@
!
hostname test
+domainname test.domain
!
!
!
@@ -327,6 +328,7 @@ frr version @PACKAGE_VERSION@
frr defaults @DFLT_NAME@
!
hostname foohost
+domainname test.domain
!
!
!
diff --git a/tests/lib/cli/test_commands.c b/tests/lib/cli/test_commands.c
index 74816ece8c..ba46bdcea9 100644
--- a/tests/lib/cli/test_commands.c
+++ b/tests/lib/cli/test_commands.c
@@ -143,7 +143,7 @@ static void test_init(void)
cmd_init(1);
yang_init();
- nb_init(NULL, 0);
+ nb_init(master, NULL, 0);
install_node(&bgp_node, NULL);
install_node(&rip_node, NULL);