diff --git a/tests/entrypoint.sh b/tests/entrypoint.sh index d582b29..d4aff0e 100644 --- a/tests/entrypoint.sh +++ b/tests/entrypoint.sh @@ -68,14 +68,15 @@ for file in $test_files; do if [ -z "$VERBOSE" ]; then output="$TMPDIR/$file.log" mkdir -p "$(dirname "$output")" + exec 3>"$output" else - output=/dev/stdout + exec 3>&1 fi ( export TEST_CASE_FILE="$file" - if ! $SHELL -e -x "$root/cases/$file" >"$output" 2>&1; then + if ! $SHELL -e -x "$root/cases/$file" >&3 2>&1; then echo "$file FAILED" if [ -z "$VERBOSE" ]; then echo "output of test is as follows"