diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-07 17:34:54 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-03-12 09:57:30 -0500 |
commit | 74524712873e72bad76de07be2401c10b694d25f (patch) | |
tree | 2af365d27e760670682ce55cf8203c3ae83607c4 /test/test-main.c | |
parent | 19fb3dba8e2a80d32d1a6c916922a4281d792780 (diff) | |
download | u-boot-74524712873e72bad76de07be2401c10b694d25f.tar.gz |
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/test-main.c')
-rw-r--r-- | test/test-main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test-main.c b/test/test-main.c index db0d82e36c3..e273777b6e2 100644 --- a/test/test-main.c +++ b/test/test-main.c @@ -50,13 +50,14 @@ int test_pre_run(struct unit_test_state *uts, struct unit_test *test) return -EAGAIN; } } + ut_silence_console(uts); return 0; } int test_post_run(struct unit_test_state *uts, struct unit_test *test) { - gd->flags &= ~GD_FLG_RECORD; + ut_unsilence_console(uts); return 0; } |