X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=tests%2Futils%2Ftap-driver.sh;h=56d4d3e45487d8eb2c15800f92a355b43b332340;hb=HEAD;hp=1e61e1f2870746a8d3aa11f6903f7e8a624235a7;hpb=2a69bf1437eb7e81979a1410b1a66a960b52caeb;p=lttng-tools.git diff --git a/tests/utils/tap-driver.sh b/tests/utils/tap-driver.sh index 1e61e1f28..56d4d3e45 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 [ "${LTTNG_TESTS_TAP_AUTOTIME:-}" != 0 ]; then + stdbuf -eL -oL -- "$@" + else + "$@" + fi echo $? ) | LC_ALL=C ${AM_TAP_AWK-awk} \ -v me="$me" \