From dee4af012e4afc4cf48898eb6c54f1f0b0e1649c Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Tue, 11 Jun 2024 15:36:48 +0200 Subject: [PATCH] Fix tests.sh verbose output redirection --- tests/entrypoint.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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"