diff --git a/t/test-lib.sh b/t/test-lib.sh index 4461ea4307..9b46325c31 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -709,7 +709,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