From a2654bdc69e2b4160fd92d9ee9c15d2793ad65c3 Mon Sep 17 00:00:00 2001 From: Felix Frank Date: Mon, 26 Feb 2024 08:35:38 +0100 Subject: [PATCH] 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. --- test/util.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/util.sh b/test/util.sh index 26cef3a1..18c640fe 100755 --- a/test/util.sh +++ b/test/util.sh @@ -45,9 +45,9 @@ in_env() { fail_test() { if in_env github; then - echo "::error::$@" + echo "::error::$@" >&2 else - echo -e "FAIL: $@" + echo -e "FAIL: $@" >&2 fi exit 1 }