[PATCH 11/17] test: Add a way to detect a test that breaks another

Simon Glass sjg at chromium.org
Sat Nov 5 20:55:39 CET 2022


When running unit tests, some may have side effects which cause a
subsequent test to break. This can sometimes be seen when using 'ut dm'
or similar.

Add a new argument which allows a particular (failing) test to be run
immediately after a certain number of tests have run. This allows the
test causing the failure to be determined.

Update the documentation also.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 arch/sandbox/cpu/spl.c        |  2 +-
 doc/develop/tests_sandbox.rst | 69 +++++++++++++++++++++++++++++++++++
 doc/usage/cmd/ut.rst          | 11 +++++-
 include/test/ut.h             |  7 +++-
 test/cmd_ut.c                 |  9 ++++-
 test/test-main.c              | 39 +++++++++++++++++---
 6 files changed, 127 insertions(+), 10 deletions(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list