]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tests: fix domainname dependency
authorDavid Lamparter <equinox@diac24.net>
Tue, 30 Oct 2018 00:43:31 +0000 (01:43 +0100)
committerDavid Lamparter <equinox@diac24.net>
Fri, 7 Dec 2018 18:17:25 +0000 (19:17 +0100)
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>
tests/lib/cli/common_cli.c
tests/lib/cli/test_cli.refout.in

index 0fd2f80a39b5b12878588868a672e368270b0cb5..ca123136672b65a7b210e9a627877391faf72d9e 100644 (file)
@@ -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();
index ba789de81ca701eb4e80f2b2d6c4ea787f71ca5f..eecb0f2904785a08f147031152a8b6c7b659e5a9 100644 (file)
@@ -311,6 +311,7 @@ frr version @PACKAGE_VERSION@
 frr defaults @DFLT_NAME@\r
 !\r
 hostname test\r
+domainname test.domain\r
 !\r
 !\r
 line vty\r
@@ -326,6 +327,7 @@ frr version @PACKAGE_VERSION@
 frr defaults @DFLT_NAME@\r
 !\r
 hostname foohost\r
+domainname test.domain\r
 !\r
 !\r
 line vty\r