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:
Krzysztof Chruscinski 2022-01-20 10:49:16 +01:00 committed by Carles Cufí
commit 8850954c6d

View file

@ -605,6 +605,7 @@ void main(void)
z_init_mock();
test_main();
end_report();
LOG_PANIC();
if (IS_ENABLED(CONFIG_ZTEST_RETEST_IF_PASSED)) {
static __noinit struct {
uint32_t magic;