mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
test: Move stat-printing into its own function
Add a function to show the stats, so we can decide when to print it. This slightly adjusts the output, so that any 'test not found' message appears on its own line after all other output. The 'failures' message now appears in lower case so update pytest accordingly. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -530,4 +530,12 @@ int ut_run_list(struct unit_test_state *uts, const char *category,
|
||||
const char *select_name, int runs_per_test, bool force_run,
|
||||
const char *test_insert);
|
||||
|
||||
/**
|
||||
* ut_report() - Report stats on a test run
|
||||
*
|
||||
* @stats: Stats to show
|
||||
* @run_count: Number of suites that were run
|
||||
*/
|
||||
void ut_report(struct ut_stats *stats, int run_count);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user