diff options
-rw-r--r-- | tests/include.rc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/include.rc b/tests/include.rc index 7772bf2d4..509e783fe 100644 --- a/tests/include.rc +++ b/tests/include.rc @@ -83,10 +83,15 @@ function _TEST() { TESTLINE=$1; shift; + local redirect="" test_header "$@"; - eval "$@" >/dev/null 2>&1 + if [ "$1"="!" ]; then + redirect="2>&1" + fi + + eval "$@" >/dev/null $redirect test_footer; } |