Paul Sokolovsky | 44a3ce6 | 2023-04-08 00:35:28 +0300 | [diff] [blame] | 1 | #!/bin/sh -x |
Paul Sokolovsky | 30619ea | 2022-12-01 17:13:15 +0300 | [diff] [blame] | 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 | |
| 9 | cmd="$1" |
| 10 | shift |
| 11 | stdbuf -oL "$cmd" "$@" |
Paul Sokolovsky | 44a3ce6 | 2023-04-08 00:35:28 +0300 | [diff] [blame] | 12 | sleep 10 |