diff --git a/t/test-lib.sh b/t/test-lib.sh index 75676278b1..9d0b826513 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -761,7 +761,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