aboutsummaryrefslogtreecommitdiff
path: root/test/dm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-07 17:34:54 -0700
committerTom Rini <trini@konsulko.com>2021-03-12 09:57:30 -0500
commit74524712873e72bad76de07be2401c10b694d25f (patch)
tree2af365d27e760670682ce55cf8203c3ae83607c4 /test/dm
parent19fb3dba8e2a80d32d1a6c916922a4281d792780 (diff)
downloadu-boot-74524712873e72bad76de07be2401c10b694d25f.zip
u-boot-74524712873e72bad76de07be2401c10b694d25f.tar.gz
u-boot-74524712873e72bad76de07be2401c10b694d25f.tar.bz2
test: Move console silencing to test_pre_run()
We already have a function for silencing the console during tests. Use this from test_pre_run() and drop this code from the driver model tests. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/dm')
-rw-r--r--test/dm/test-dm.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/test/dm/test-dm.c b/test/dm/test-dm.c
index d1d83e3..fdd35f6 100644
--- a/test/dm/test-dm.c
+++ b/test/dm/test-dm.c
@@ -66,7 +66,6 @@ static int dm_test_destroy(struct unit_test_state *uts)
static int dm_do_test(struct unit_test_state *uts, struct unit_test *test,
bool of_live)
{
- struct sandbox_state *state = state_get_current();
const char *fname = strrchr(test->file, '/') + 1;
printf("Test: %s: %s%s\n", test->name, fname,
@@ -75,13 +74,10 @@ static int dm_do_test(struct unit_test_state *uts, struct unit_test *test,
ut_assertok(test_pre_run(uts, test));
- if (!state->show_test_output)
- gd->flags |= GD_FLG_SILENT;
test->func(uts);
ut_assertok(test_post_run(uts, test));
- gd->flags &= ~(GD_FLG_SILENT | GD_FLG_RECORD);
state_set_skip_delays(false);
ut_assertok(dm_test_destroy(uts));