test: Add a way to detect a test that breaks another
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@chromium.org>
Showing
- arch/sandbox/cpu/spl.c 1 addition, 1 deletionarch/sandbox/cpu/spl.c
- doc/develop/tests_sandbox.rst 69 additions, 0 deletionsdoc/develop/tests_sandbox.rst
- doc/usage/cmd/ut.rst 10 additions, 1 deletiondoc/usage/cmd/ut.rst
- include/test/ut.h 6 additions, 1 deletioninclude/test/ut.h
- test/cmd_ut.c 7 additions, 2 deletionstest/cmd_ut.c
- test/test-main.c 34 additions, 5 deletionstest/test-main.c
Please register or sign in to comment