From: David Lamparter Date: Tue, 30 Oct 2018 00:43:31 +0000 (+0100) Subject: tests: fix domainname dependency X-Git-Tag: frr-7.1-dev~112^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=e4cdd7ccc584b1e7adb9909028d35936f69114de;p=mirror%2Ffrr.git 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 --- diff --git a/tests/lib/cli/common_cli.c b/tests/lib/cli/common_cli.c index 04f1e3253d..7b2db0162b 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 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 ! ! !