blob: 2588ecaf03dfa981d69a9c40e9ffadcf13838b6f [file] [log] [blame]
Paul Sokolovsky69bdd3b2023-04-04 12:26:30 +03001#!/bin/sh -x
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 10