All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/9] test/dm: clear unit test failure count each run
@ 2016-01-28  6:57 Stephen Warren
  2016-01-28  6:57 ` [U-Boot] [PATCH 2/9] test/py: fix spawn.expect multiple match handling Stephen Warren
                   ` (8 more replies)
  0 siblings, 9 replies; 26+ messages in thread
From: Stephen Warren @ 2016-01-28  6:57 UTC (permalink / raw)
  To: u-boot

From: Stephen Warren <swarren@nvidia.com>

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>
---
 test/dm/test-main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/dm/test-main.c b/test/dm/test-main.c
index 91bdda83ab36..f2e004814387 100644
--- a/test/dm/test-main.c
+++ b/test/dm/test-main.c
@@ -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...
-- 
2.7.0

^ permalink raw reply related	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2016-01-29  4:02 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-28  6:57 [U-Boot] [PATCH 1/9] test/dm: clear unit test failure count each run Stephen Warren
2016-01-28  6:57 ` [U-Boot] [PATCH 2/9] test/py: fix spawn.expect multiple match handling Stephen Warren
2016-01-29  3:47   ` Simon Glass
2016-01-29  4:02     ` Simon Glass
2016-01-28  6:57 ` [U-Boot] [PATCH 3/9] test.py: calculate bad patterns on change only Stephen Warren
2016-01-29  3:47   ` Simon Glass
2016-01-29  4:02     ` Simon Glass
2016-01-28  6:57 ` [U-Boot] [PATCH 4/9] test/py: check for bad patterns everywhere we wait Stephen Warren
2016-01-29  3:47   ` Simon Glass
2016-01-29  4:02     ` Simon Glass
2016-01-28  6:57 ` [U-Boot] [PATCH 5/9] test/py: detect another "bad pattern" in console output Stephen Warren
2016-01-29  3:47   ` Simon Glass
2016-01-29  4:02     ` Simon Glass
2016-01-28  6:57 ` [U-Boot] [PATCH 6/9] test/py: correctly log xfail/xpass tests Stephen Warren
2016-01-29  3:47   ` Simon Glass
2016-01-29  4:02     ` Simon Glass
2016-01-28  6:57 ` [U-Boot] [PATCH 7/9] test/py: pass test DTB to sandbox Stephen Warren
2016-01-29  3:47   ` Simon Glass
2016-01-29  4:02     ` Simon Glass
2016-01-28  6:57 ` [U-Boot] [PATCH 8/9] test/py: run sandbox in source directory Stephen Warren
2016-01-29  3:47   ` Simon Glass
2016-01-29  4:02     ` Simon Glass
2016-01-28  6:57 ` [U-Boot] [PATCH 9/9] test/py: run C-based unit tests Stephen Warren
2016-01-29  3:47   ` Simon Glass
2016-01-29  3:46 ` [U-Boot] [PATCH 1/9] test/dm: clear unit test failure count each run Simon Glass
2016-01-29  4:02   ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.