dockerfile-template: Install stdout-flush-wrapper.sh script into image
This script is to workaround an apparent LAVA race condition, when it
detects "EOF" (i.e. app termination) before it reads out all the stdout
from the app (FVP in this case). The wrapper explicitly runs a command
in line-buffered mode, that helps a little (LAVA reads more output),
but not completely, so we just give LAVA more time with some sleep after
command termination.
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: I16ec7349723ec040f12fd805b5ea372c0b6dc2a3
diff --git a/dockerfile-template b/dockerfile-template
index b518e19..4f5fbbd 100644
--- a/dockerfile-template
+++ b/dockerfile-template
@@ -25,6 +25,7 @@
WORKDIR ${MODEL_DIR}
COPY setup-sshd /usr/sbin/setup-sshd
+COPY stdout-flush-wrapper.sh /usr/bin/stdout-flush-wrapper.sh
# Add the FVP model tarball
# NOTE: some tarballs contain an installer script others don't, so it may be the case