aboutsummaryrefslogtreecommitdiff
path: root/test/ut.c
diff options
context:
space:
mode:
authorSimon Glass2021-03-07 17:34:55 -0700
committerTom Rini2021-03-12 09:57:30 -0500
commit47ec3ede4efe214b4debdaf845d6eb622154f405 (patch)
tree04bebac4f5049500b744148a4dce8933c2a0053c /test/ut.c
parent74524712873e72bad76de07be2401c10b694d25f (diff)
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.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ut.c b/test/ut.c
index 7328338731c..ea0af153e4a 100644
--- a/test/ut.c
+++ b/test/ut.c
@@ -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
+}