After reporting test results, flush the output buffers to ensure the files are written out. Also flush again at the end of running all tests
Signed-off-by: Joshua Watt <jpewhac...@gmail.com> --- utils.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/utils.c b/utils.c index bd52544..59b8b77 100644 --- a/utils.c +++ b/utils.c @@ -601,6 +601,9 @@ run_ptests(struct ptest_list *head, const struct ptest_options opts, do_close(&pipefd_stderr[PIPE_READ]); do_close(&pipefd_stderr[PIPE_WRITE]); + fflush(fp); + fflush(fp_stderr); + PTEST_LIST_ITERATE_END fprintf(fp, "STOP: %s\n", progname); } while (0); @@ -611,6 +614,9 @@ run_ptests(struct ptest_list *head, const struct ptest_options opts, if (opts.xml_filename) xml_finish(xh); + fflush(fp); + fflush(fp_stderr); + return rc; } -- 2.33.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#60610): https://lists.yoctoproject.org/g/yocto/message/60610 Mute This Topic: https://lists.yoctoproject.org/mt/100220154/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-