summaryrefslogtreecommitdiff
path: root/test/log/syslog_test_ndebug.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-09-12 12:28:50 -0600
committerTom Rini <trini@konsulko.com>2020-10-10 16:50:11 -0400
commitc7f5b850344b1bb620f603ab7df3ee92e1fa26cf (patch)
tree967c6fd2d471c0eecae714b243bd1fdfb1bfa1e3 /test/log/syslog_test_ndebug.c
parent3d03ab6361a4a2b60e84da46c547b8ace01a60eb (diff)
log: Disable the syslog driver by default
This driver interferes with other sandbox tests since it causes log output to be interspersed with "No ethernet found." messages. Disable this driver by default. Enable it for the syslog tests so that they still pass. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/log/syslog_test_ndebug.c')
-rw-r--r--test/log/syslog_test_ndebug.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/log/syslog_test_ndebug.c b/test/log/syslog_test_ndebug.c
index 7815977ea27..c7f5a60861f 100644
--- a/test/log/syslog_test_ndebug.c
+++ b/test/log/syslog_test_ndebug.c
@@ -33,6 +33,7 @@ static int log_test_syslog_nodebug(struct unit_test_state *uts)
int old_log_level = gd->default_log_level;
struct sb_log_env env;
+ ut_assertok(syslog_test_setup(uts));
gd->log_fmt = LOGF_TEST;
gd->default_log_level = LOGL_INFO;
env_set("ethact", "eth@10002000");
@@ -49,6 +50,7 @@ static int log_test_syslog_nodebug(struct unit_test_state *uts)
ut_assertnonnull(env.expected);
gd->default_log_level = old_log_level;
gd->log_fmt = log_get_default_format();
+ ut_assertok(syslog_test_finish(uts));
return 0;
}