summaryrefslogtreecommitdiffstats
path: root/tests/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-12-16 16:46:06 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-12-16 17:26:52 -0500
commitd056ec6d2d4728b695cc146c5119b251e8234393 (patch)
tree40585086171aa596e326b59bd5d8a3f4b63e5a77 /tests/tests.sh
parente2b540c9e2a52500b17fa1005b26b2dd5a652c09 (diff)
downloadbfs-d056ec6d2d4728b695cc146c5119b251e8234393.tar.xz
tests: Save test stderr to separate files
Diffstat (limited to 'tests/tests.sh')
-rwxr-xr-xtests/tests.sh4
1 files 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