Previously if you configured a different timestamp precision then
`make check` would fail as the non-default config is generated and
fails test_cli config file comparison.
Signed-off-by: Christian Hopps <chopps@labn.net>
;;
esac
with_log_timestamp_precision=${with_log_timestamp_precision:-0}
+if test "${with_log_timestamp_precision}" != 0; then
+AC_SUBST([LOG_TIMESTAMP_PRECISION_CLI], ["
+log timestamp precision ${with_log_timestamp_precision}"])
+AM_SUBST_NOTMAKE([LOG_TIMESTAMP_PRECISION_CLI])
+fi
AC_DEFINE_UNQUOTED([LOG_TIMESTAMP_PRECISION], [${with_log_timestamp_precision}], [Startup zlog timestamp precision])
AC_DEFINE_UNQUOTED([VTYSH_PAGER], ["$VTYSH_PAGER"], [What pager to use])
frr defaults @DFLT_NAME@\r
!\r
hostname test\r
-domainname test.domain\r
+domainname test.domain@LOG_TIMESTAMP_PRECISION_CLI@
!\r
!\r
!\r
frr defaults @DFLT_NAME@\r
!\r
hostname foohost\r
-domainname test.domain\r
+domainname test.domain@LOG_TIMESTAMP_PRECISION_CLI@
!\r
!\r
!\r