blob: c164d294a343a17490b021e81aca20fde6297d1d [file] [log] [blame]
Paul Sokolovsky30619ea2022-12-01 17:13:15 +03001#!/bin/sh
2# This script is to workaround an apparent LAVA race condition, when it
3# detects "EOF" (i.e. app termination) before it reads out all the stdout
4# from the app (FVP in this case). The wrapper explicitly runs a command
5# in line-buffered mode, that helps a little (LAVA reads more output),
6# but not completely, so we just give LAVA more time with some sleep after
7# command termination.
8
9cmd="$1"
10shift
11stdbuf -oL "$cmd" "$@"
12sleep 3