From d056ec6d2d4728b695cc146c5119b251e8234393 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 16 Dec 2022 16:46:06 -0500 Subject: tests: Save test stderr to separate files --- tests/tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tests.sh b/tests/tests.sh index 9bf9b8b..962a2cf 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -666,7 +666,7 @@ for TEST in "${TEST_CASES[@]}"; do if [ "$VERBOSE_ERRORS" ]; then (set -e; . "$TESTS/$TEST.sh") else - (set -e; . "$TESTS/$TEST.sh") 2>"$TMP/stderr" + (set -e; . "$TESTS/$TEST.sh") 2>"$TMP/$TEST.err" fi status=$? @@ -676,7 +676,7 @@ for TEST in "${TEST_CASES[@]}"; do ((++skipped)) else ((++failed)) - [ "$VERBOSE_ERRORS" ] || cat "$TMP/stderr" >&2 + [ "$VERBOSE_ERRORS" ] || cat "$TMP/$TEST.err" >&2 printf "${BOL}${RED}%s failed!${RST}\n" "$TEST" [ "$STOP" ] && break fi -- cgit v1.2.3