X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Futils%2Ftap-driver.sh;h=9baa4d923f683758e3a0f6b0cfc2ff3340b8fa18;hb=2f13f70482a0cce533babdb7909b5b307708ca40;hp=1e61e1f2870746a8d3aa11f6903f7e8a624235a7;hpb=01076722667ada7b84d366c26977f014aefd3ebc;p=lttng-tools.git diff --git a/tests/utils/tap-driver.sh b/tests/utils/tap-driver.sh index 1e61e1f28..9baa4d923 100755 --- a/tests/utils/tap-driver.sh +++ b/tests/utils/tap-driver.sh @@ -150,7 +150,11 @@ TIME_SCRIPT="$(realpath -e -- "$(dirname "$0")")/tap/clock" # the outputs in the resulting file for half written lines, eg. # ok 93 - Tes# PERROR - xxxx # t some function - stdbuf -eL -oL -- "$@" + if [ "${TAP_AUTOTIME:-}" != 0 ]; then + stdbuf -eL -oL -- "$@" + else + "$@" + fi echo $? ) | LC_ALL=C ${AM_TAP_AWK-awk} \ -v me="$me" \