diff --git a/t/test-lib.sh b/t/test-lib.sh index 23ec58032f..9925286c7d 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -746,7 +746,12 @@ test_eval_ () { # be _inside_ the block to avoid polluting the "set -x" output # - test_eval_inner_ "$@" &3 2>&4 + if test -n "$TEST_NO_REDIRECT" + then + test_eval_inner_ "$@" + else + test_eval_inner_ "$@" &3 2>&4 + fi { test_eval_ret_=$? if want_trace