blob: 2588ecaf03dfa981d69a9c40e9ffadcf13838b6f [file] [log] [blame]
Paul Sokolovsky44a3ce62023-04-08 00:35:28 +03001#!/bin/sh -x
Paul Sokolovsky30619ea2022-12-01 17:13:15 +03002# 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" "$@"
Paul Sokolovsky44a3ce62023-04-08 00:35:28 +030012sleep 10