test: Send error messages to stderr, where they belong

When error messages are written to stdout, they will be considered as
output in case we want to fail from inside $( ) or backticks, and then
the error does not end up on the terminal.
This commit is contained in:
Felix Frank
2024-02-26 08:35:38 +01:00
committed by James Shubin
parent edcb04d1a9
commit a2654bdc69

View File

@@ -45,9 +45,9 @@ in_env() {
fail_test() { fail_test() {
if in_env github; then if in_env github; then
echo "::error::$@" echo "::error::$@" >&2
else else
echo -e "FAIL: $@" echo -e "FAIL: $@" >&2
fi fi
exit 1 exit 1
} }