summaryrefslogtreecommitdiffstats
path: root/tests/lib/cli
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2018-10-30 01:43:31 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2018-12-07 19:34:45 +0100
commite4cdd7ccc584b1e7adb9909028d35936f69114de (patch)
tree936f98f2e3ceb1b0ad27f2e3c2267d36914bafa8 /tests/lib/cli
parentMerge pull request #3405 from LabNConsulting/working/master/fix-vrf (diff)
downloadfrr-e4cdd7ccc584b1e7adb9909028d35936f69114de.tar.xz
frr-e4cdd7ccc584b1e7adb9909028d35936f69114de.zip
tests: fix domainname dependency
These are causing random test failures when the host's domainname is actually set to something (as opposed to empty/unset, which it is 99% of times.) Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'tests/lib/cli')
-rw-r--r--tests/lib/cli/common_cli.c1
-rw-r--r--tests/lib/cli/test_cli.refout.in2
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/lib/cli/common_cli.c b/tests/lib/cli/common_cli.c
index 04f1e3253..7b2db0162 100644
--- a/tests/lib/cli/common_cli.c
+++ b/tests/lib/cli/common_cli.c
@@ -80,6 +80,7 @@ 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();
diff --git a/tests/lib/cli/test_cli.refout.in b/tests/lib/cli/test_cli.refout.in
index af8f9ce56..8f9959cc4 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
!
!
!