mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
test/dm: clear unit test failure count each run
The ut command prints a test failure count each time it is executed. This is stored in a global variable which is never reset. Consequently, the printed failure count accumulates across runs. Fix this by clearing the counter each time "ut" is invoked. Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
d20e5e976f
commit
26e1beccbe
1 changed files with 2 additions and 0 deletions
|
@ -81,6 +81,8 @@ static int dm_test_main(const char *test_name)
|
|||
struct unit_test *test;
|
||||
int run_count;
|
||||
|
||||
uts->fail_count = 0;
|
||||
|
||||
/*
|
||||
* If we have no device tree, or it only has a root node, then these
|
||||
* tests clearly aren't going to work...
|
||||
|
|
Loading…
Reference in a new issue