mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
test: Report skippped tests
At present it is possible for a test to skip itself by returning -EAGAIN but this is not recorded. An existing example is in test_pre_run() with the "Console recording disabled" check. Keep a track of skipped tests and report the total at the end. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
d2afb9edce
commit
1facaadea1
2 changed files with 22 additions and 3 deletions
|
@ -13,6 +13,7 @@
|
|||
* struct unit_test_state - Entire state of test system
|
||||
*
|
||||
* @fail_count: Number of tests that failed
|
||||
* @skip_count: Number of tests that were skipped
|
||||
* @start: Store the starting mallinfo when doing leak test
|
||||
* @of_live: true to use livetree if available, false to use flattree
|
||||
* @of_root: Record of the livetree root node (used for setting up tests)
|
||||
|
@ -32,6 +33,7 @@
|
|||
*/
|
||||
struct unit_test_state {
|
||||
int fail_count;
|
||||
int skip_count;
|
||||
struct mallinfo start;
|
||||
struct device_node *of_root;
|
||||
bool of_live;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue