projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests: Disable 'stdbuf' when TAP autotime is disabled
[lttng-tools.git]
/
tests
/
utils
/
tap-driver.sh
diff --git
a/tests/utils/tap-driver.sh
b/tests/utils/tap-driver.sh
index 1e61e1f2870746a8d3aa11f6903f7e8a624235a7..9baa4d923f683758e3a0f6b0cfc2ff3340b8fa18 100755
(executable)
--- 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
# 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" \
echo $?
) | LC_ALL=C ${AM_TAP_AWK-awk} \
-v me="$me" \
This page took
0.023942 seconds
and
4
git commands to generate.