diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-07 17:34:55 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-03-12 09:57:30 -0500 |
commit | 47ec3ede4efe214b4debdaf845d6eb622154f405 (patch) | |
tree | 04bebac4f5049500b744148a4dce8933c2a0053c /test/ut.c | |
parent | 74524712873e72bad76de07be2401c10b694d25f (diff) | |
download | u-boot-47ec3ede4efe214b4debdaf845d6eb622154f405.tar.gz u-boot-47ec3ede4efe214b4debdaf845d6eb622154f405.tar.xz u-boot-47ec3ede4efe214b4debdaf845d6eb622154f405.zip |
test: Move delay skipping to test_pre_run()
This allows delays to be skipped in sandbox tests. Move it to the
common pre-init function.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/ut.c')
-rw-r--r-- | test/ut.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -133,3 +133,10 @@ void ut_unsilence_console(struct unit_test_state *uts) { gd->flags &= ~(GD_FLG_SILENT | GD_FLG_RECORD); } + +void ut_set_skip_delays(struct unit_test_state *uts, bool skip_delays) +{ +#ifdef CONFIG_SANDBOX + state_set_skip_delays(skip_delays); +#endif +} |