zmake: wait for all logs.

This change fixes an issue that sometimes takes place. When a process
terminates prior to the stdout/stderr pipes being clear, zmake would
terminate and some of the output would be missing. This was most
repeatable in platform/ec/zephyr/test/base32.

BUG=b:176364631
TEST=zmake -l DEBUG configure --test -B ~/build/base32 \
     ../ec/zephyr/test/base32
TEST=zmake -l DEBUG testall

Change-Id: Ia99a9d600996330818a19f6a709c3e2c181ed4b0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2605683
Tested-by: Yuval Peress <peress@chromium.org>
Auto-Submit: Yuval Peress <peress@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Commit-Queue: Paul Fagerburg <pfagerburg@chromium.org>
2 files changed