Tests: Disable 'stdbuf' when TAP autotime is disabled
[lttng-tools.git] / tests / utils / tap-driver.sh
index 1e61e1f2870746a8d3aa11f6903f7e8a624235a7..9baa4d923f683758e3a0f6b0cfc2ff3340b8fa18 100755 (executable)
@@ -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" \
This page took 0.022893 seconds and 4 git commands to generate.