testsuite: ztest: Add logs flushing after suite
Flushing logs here is especially vital if LOG_PRINTK is enabled. In that case printk goes to log and without flushing after all tests are run you will not get the final report out. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
b85689ba42
commit
8850954c6d
1 changed files with 1 additions and 0 deletions
|
@ -605,6 +605,7 @@ void main(void)
|
||||||
z_init_mock();
|
z_init_mock();
|
||||||
test_main();
|
test_main();
|
||||||
end_report();
|
end_report();
|
||||||
|
LOG_PANIC();
|
||||||
if (IS_ENABLED(CONFIG_ZTEST_RETEST_IF_PASSED)) {
|
if (IS_ENABLED(CONFIG_ZTEST_RETEST_IF_PASSED)) {
|
||||||
static __noinit struct {
|
static __noinit struct {
|
||||||
uint32_t magic;
|
uint32_t magic;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue