summaryrefslogtreecommitdiff
path: root/arch/sandbox/cpu
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-08-01 16:58:45 +0300
committerTom Rini <trini@konsulko.com>2022-09-02 23:21:44 +0300
commitea94d053e19ee3341301cf999a8dd78e37b83cca (patch)
tree94bfae9af3d2f92815effcd7351db40577a32af5 /arch/sandbox/cpu
parente033c180d0327e8fa791660ae26cdebd5e400153 (diff)
downloadu-boot-ea94d053e19ee3341301cf999a8dd78e37b83cca.tar.xz
test: Allow running tests multiple times
Some tests can have race conditions which are hard to detect on a single one. Add a way to run tests more than once, to help with this. Each individual test is run the requested number of times before moving to the next test. If any runs failed, a message is shown. This is most useful when running a single test, since running all tests multiple times can take a while. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/cpu')
-rw-r--r--arch/sandbox/cpu/spl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sandbox/cpu/spl.c b/arch/sandbox/cpu/spl.c
index fe5d44d36e..1d49a9bd10 100644
--- a/arch/sandbox/cpu/spl.c
+++ b/arch/sandbox/cpu/spl.c
@@ -89,7 +89,7 @@ void spl_board_init(void)
int ret;
ret = ut_run_list("spl", NULL, tests, count,
- state->select_unittests);
+ state->select_unittests, 1);
/* continue execution into U-Boot */
}
}