From 0f95a65968de8d3e8ab3d27a62f8a3c66ca99add Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Tue, 30 Oct 2018 01:43:31 +0100 Subject: [PATCH] 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 --- tests/lib/cli/common_cli.c | 1 + tests/lib/cli/test_cli.refout.in | 2 ++ 2 files changed, 3 insertions(+) diff --git a/tests/lib/cli/common_cli.c b/tests/lib/cli/common_cli.c index 0fd2f80a39..ca12313667 100644 --- a/tests/lib/cli/common_cli.c +++ b/tests/lib/cli/common_cli.c @@ -78,6 +78,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 ba789de81c..eecb0f2904 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 ! ! line vty @@ -326,6 +327,7 @@ frr version @PACKAGE_VERSION@ frr defaults @DFLT_NAME@ ! hostname foohost +domainname test.domain ! ! line vty -- 2.39.5